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

Documentation update #115

Open
Ladylain opened this issue May 7, 2019 · 0 comments
Open

Documentation update #115

Ladylain opened this issue May 7, 2019 · 0 comments

Comments

@Ladylain
Copy link

Ladylain commented May 7, 2019

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:

e = {
   date
}

Emitted from:

  • show()
  • update()

Hope it could help someone. :)

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

1 participant