diff options
author | Marvin Borner | 2018-07-13 19:06:45 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-13 19:06:45 +0200 |
commit | 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 (patch) | |
tree | dbc87ef16fa01d5d99116de283592b8fe5e02944 /public/bower_components/bootstrap-datepicker/docs/events.rst | |
parent | dfd839f27146df0ad0494e11734fc7d310c70ebf (diff) |
Fixed many permissions and began admin interface
Diffstat (limited to 'public/bower_components/bootstrap-datepicker/docs/events.rst')
-rw-r--r-- | public/bower_components/bootstrap-datepicker/docs/events.rst | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/public/bower_components/bootstrap-datepicker/docs/events.rst b/public/bower_components/bootstrap-datepicker/docs/events.rst new file mode 100644 index 0000000..89ffddb --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/events.rst @@ -0,0 +1,63 @@ +Events +====== + +Datepicker triggers a number of events in certain circumstances. All events have extra data attached to the event object that is passed to any event handlers + +:: + + $('.datepicker').datepicker() + .on(picker_event, function(e) { + // `e` here contains the extra attributes + }); + +* ``date``: the relevant Date object, in local timezone. For a multidate picker, this will be the latest date picked. +* ``dates``: an Array of Date objects, in local timezone, when using a multidate picker. +* ``format([ix], [format])``: a function to make formatting ``date`` easier. ``ix`` can be the index of a Date in the ``dates`` array to format; if absent, the last date selected will be used. ``format`` can be any format string that datepicker supports; if absent, the format set on the datepicker will be used. Both arguments are optional. + + +show +---- + +Fired when the date picker is displayed. + + +hide +---- + +Fired when the date picker is hidden. + + +clearDate +--------- + +Fired when the date is cleared, normally when the "clear" button (enabled with the ``clearBtn`` option) is pressed. + + +changeDate +---------- + +Fired when the date is changed. + + +changeMonth +----------- + +Fired when the *view* month is changed from year view. + + +changeYear +---------- + +Fired when the *view* year is changed from decade view. + + +changeDecade +------------ + +Fired when the *view* decade is changed from century view. + + +changeCentury +------------- + +Fired when the *view* century is changed from millennium view. |