You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using eonasdan-bootstrap-datetimepicker and i had a specific need.
I know that maybe some of us may need to add class to specific days like we can do with beforeshowday in jquery.ui Datepicker.
That's why after a little research, i've found a solution, but i don't know how i can pull request this to the documentation. So, i'm posting this here, and i hope that an admin will put this to the docs.
If you need to add specific classnames to specific days, you can use the event dp.classify which loop for all days that are shown on the datepicker.
dp.classify
Fired when the datepicker is shown.
Parameters:
e = {
date
}
Emitted from:
show()
update()
Hope it could help someone. :)
The text was updated successfully, but these errors were encountered:
Hi guys,
I was using eonasdan-bootstrap-datetimepicker and i had a specific need.
I know that maybe some of us may need to add class to specific days like we can do with beforeshowday in jquery.ui Datepicker.
That's why after a little research, i've found a solution, but i don't know how i can pull request this to the documentation. So, i'm posting this here, and i hope that an admin will put this to the docs.
If you need to add specific classnames to specific days, you can use the event dp.classify which loop for all days that are shown on the datepicker.
dp.classify
Fired when the datepicker is shown.
Parameters:
Emitted from:
Hope it could help someone. :)
The text was updated successfully, but these errors were encountered: