-
Notifications
You must be signed in to change notification settings - Fork 73
Determine which custom Class was set on the clickedDate #11
Comments
Hello @4pr3x, I can surely expose the classes of the selected day in the Do you think this could also have some use even in the |
Hey @GiovanniFrigo, thank you for the quick response. A string containing the assigned html classes would work for me even if I would prefer an object therefore I would´t have to split it on my own, but this is just relevant for my specific use-case ;) But I see the argument for a string! I have a use-case where the classes would also be relevant for |
Any idea on how to pass out the classes for multiple days in a way that is convenient to use? Maybe an object mapping classes for each day? An array of strings? |
See Issue #11: Determine which custom Class was set on the clickedDate
I've implemented the classes passing for single days for now, it is available in npm version |
Great to hear! Thanks for the quick implementation, looks good.
Both would work for me. Guess an array of strings would be good. Thanks |
Hey,
first of all thank you very much for sharing this awesome project.
I would love to have the option to determine which custom Class/Classes are set on the selected Day. If this would be enabled by default, it would help to make this Calendar much more attractive for non static use-cases.
Currently I´m searching for the class selected
var select = document.getElementsByClassName('selected');
console.log(select[0].classList)
and do my stuff. But a cleaner, more usable way would be awesome.
Thanks
The text was updated successfully, but these errors were encountered: