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

Added events (show, cancel and select) as well as some ways to customize the datepicker's input #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dadisn
Copy link

@dadisn dadisn commented Nov 3, 2014

See commit messages for further details.

— Added “divClass” argument to the component, which can be used to pass
CSS classes to the div containing the datepicker input
— Added “inputClass” argument to the component, which can be used to
pass CSS classes to the datepicker’s input element
— Added option to input the datepicker tag’s content (i.e. @content)
before the input. This can be used to add labels or Bootstrap add-ons
to the input.
Added three events to the datepicker component:
— show: Triggered when the datepicker is shown
— cancel: Triggered when the datepicker is closed without selecting a
date
— select: Triggered when a new date has been selected
This was a bad idea, rather just emit an event when select has finished
running and provide the previous date as an argument. That way users
can revert to the old date if needed for some reason.
This is to prevent datepickers from firing the “cancel” all the time
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

Successfully merging this pull request may close these issues.

1 participant