Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom button about #265

Closed
emrahnalci opened this issue May 16, 2024 · 1 comment
Closed

custom button about #265

emrahnalci opened this issue May 16, 2024 · 1 comment

Comments

@emrahnalci
Copy link

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
Copy link
Owner

vkurko commented May 16, 2024

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.

@vkurko vkurko closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants