Skip to content

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

Open
dadisn wants to merge 5 commits intoicaliman:masterfrom
dadisn:master
Open

Added events (show, cancel and select) as well as some ways to customize the datepicker's input#1
dadisn wants to merge 5 commits intoicaliman:masterfrom
dadisn:master

Conversation

@dadisn
Copy link
Copy Markdown

@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