Attaching calendar to ribbon button?

Hello,

I’ve found a topic about using dhtmlx ribbon input to attach a dhtmlx calendar to.

I see that calendar’s documentation shows how to attach calendar to an image or an input.

In my case I have a button with image and text in my ribbon.

Is there a simple way attaching calendar to button in this case ?

Thanks,

Barbara

Hi

the best way is to attach calendar just to input box, because you can get its DOM element with native ribbon functionality.
logic is the same as here dhtmlx.com/docs/products/dhtmlxC … olbar.html
ribbon also has getInput() docs.dhtmlx.com/api__dhtmlxribbon_getinput.html