vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
964 stars 82 forks source link

custom button about #265

Closed emrahnalci closed 1 month ago

emrahnalci commented 1 month ago

Hello Viladimir, Thanks for everything this library. I want a new feature, I don't know if there is one. I want to add a custom buttons. textbox, input:radio, input:checkbox and add custom class this elements. (i want to write custom html.) is it possible?

I see this sample code in the documentation. But for me this is not enough.

customButtons: { myCustomButton: { text: 'custom!', click: function() { alert('clicked the custom button!'); } } }, headerToolbar: { start: 'prev,next today title', center: 'input:text', end: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek,listDay resourceTimeGridDay' },

vkurko commented 1 month ago

Hello Emrah,

I don't think the calendar should separately support checkboxes, radio buttons, etc. Perhaps custom html, but no more.

In general, it seems to me that in your case the right decision would be to refuse to use the built-in toolbar. Instead, you could make your toolbar completely separate from the calendar and implement your own buttons for switching views and navigation.