From 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 13 Jul 2018 19:06:45 +0200 Subject: Fixed many permissions and began admin interface --- .../bootstrap-datepicker/docs/markup.rst | 89 ++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 public/bower_components/bootstrap-datepicker/docs/markup.rst (limited to 'public/bower_components/bootstrap-datepicker/docs/markup.rst') diff --git a/public/bower_components/bootstrap-datepicker/docs/markup.rst b/public/bower_components/bootstrap-datepicker/docs/markup.rst new file mode 100644 index 0000000..546b844 --- /dev/null +++ b/public/bower_components/bootstrap-datepicker/docs/markup.rst @@ -0,0 +1,89 @@ +Markup +======= + +The following are examples of supported markup. On their own, these will not provide a datepicker widget; you will need to instantiate the datepicker on the markup. + + +input +----- + +The simplest case: focusing the input (clicking or tabbing into it) will show the picker. + +.. code-block:: html + + + +.. figure:: _static/screenshots/markup_input.png + :align: center + +component +--------- + +Adding the ``date`` class to an ``input-group`` bootstrap component will allow the ``input-group-addon`` elements to trigger the picker. + +.. code-block:: html + +
+ +
+ +
+
+ +.. figure:: _static/screenshots/markup_component.png + :align: center + +.. _daterange: + +date-range +---------- + +Using the ``input-daterange`` construct with multiple child inputs will instantiate one picker per input and link them together to allow selecting ranges. + +.. code-block:: html + +
+ +
to
+ +
+ +.. figure:: _static/screenshots/markup_daterange.png + :align: center + +Note that that ``input-daterange`` itself does not implement the ``datepicker`` methods. Methods should be directly called to the inputs. For example: + +:: + + $('.input-daterange input').each(function() { + $(this).datepicker('clearDates'); + }); + +inline or embedded +------------------ + +Instantiating the datepicker on a simple div will give an embedded picker that is always visible. + +.. code-block:: html + +
+ +.. figure:: _static/screenshots/markup_inline.png + :align: center + + +Example to save the embedded datepicker value to a hidden field + +.. code-block:: html + +
+ + +:: + + $('#datepicker').datepicker(); + $('#datepicker').on('changeDate', function() { + $('#my_hidden_input').val( + $('#datepicker').datepicker('getFormattedDate') + ); + }); -- cgit v1.2.3