vkurko / calendar

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

default event padding #147

Closed hmzxpcm closed 1 year ago

hmzxpcm commented 1 year ago

hello again, it would be useful, at the time of creating the event, to indicate your class to it or remove the indentation on the right (so that the event occupies the entire width of the day) In my case, I need some events to take up the entire width of the day, and some have a standard indentation

vkurko commented 1 year ago

Please check eventClassNames option.

hmzxpcm commented 1 year ago

I thought that this cb only works during initialization

vkurko commented 1 year ago

If the option is set as a function, then it will be called every time the event is redrawn.

hmzxpcm commented 1 year ago

For some reason I can't take your advice, please look

https://jsbin.com/xaqucocajo/1/edit?js,console,output

vkurko commented 1 year ago

eventClassNames is available since v1.5.0. In your demo there is v1.3.0.

hmzxpcm commented 1 year ago

thank you