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 attibutes for custom buttons #277

Open jnegron357 opened 2 weeks ago

jnegron357 commented 2 weeks ago

The new Custom Buttons feature is great but it needs to provide a mechanism for providing values to certain native attributes or events and provide custom attributes as needed (ie: data-[attribute/property]). I propose a new property for the custom button that can take a JSON string that will provide the definitions for attributes: { id: 'myId', class: 'my-class-names', onMouseOver: 'myHoverFunctionName', dataIndex: '0', dataId: '12345678', dataCategory: 'MyValue' }

vkurko commented 2 weeks ago

Thanks for your suggestion. Perhaps I'll just implement the ability to use custom html instead of a button.