Skip to content

Commit

Permalink
Refactoring js
Browse files Browse the repository at this point in the history
  • Loading branch information
vsn4ik committed May 24, 2016
1 parent d7ac9b1 commit 4c70aca
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 291 deletions.
11 changes: 6 additions & 5 deletions docs/methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Remove the datepicker. Removes attached events, internal attached objects, and

*Alias: remove*


show
----

Expand Down Expand Up @@ -168,7 +169,7 @@ Arguments:

* startDate (Date)

Sets a new lower date limit on the datepicker. See :ref:`startdate` for valid values.
Sets a new lower date limit on the datepicker. See :ref:`startDate` for valid values.

Omit startDate (or provide an otherwise falsey value) to unset the limit.

Expand All @@ -180,7 +181,7 @@ Arguments:

* endDate (Date)

Sets a new upper date limit on the datepicker. See :ref:`enddate` for valid values.
Sets a new upper date limit on the datepicker. See :ref:`endDate` for valid values.

Omit endDate (or provide an otherwise falsey value) to unset the limit.

Expand All @@ -204,9 +205,9 @@ Arguments:

* daysOfWeekDisabled (String|Array)

Sets the days of week that should be disabled. See :ref:`daysofweekdisabled` for valid values.
Sets the days of week that should be disabled. See :ref:`daysOfWeekDisabled` for valid values.

Omit daysOfWeekDisabled (or provide an otherwise falsey value) to unset the disabled days.
Omit daysOfWeekDisabled (or provide an otherwise falsey value) to unset the disabled days of week.


setDaysOfWeekHighlighted
Expand All @@ -218,4 +219,4 @@ Arguments:

Sets the days of week that should be highlighted. See :ref:`daysOfWeekHighlighted` for valid values.

Omit daysOfWeekHighlighted (or provide an otherwise falsey value) to unset the disabled days.
Omit daysOfWeekHighlighted (or provide an otherwise falsey value) to unset the highlighted days of week.
10 changes: 4 additions & 6 deletions docs/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ String. Default: "body"

Appends the date picker popup to a specific element; eg: container: '#picker-container' (will default to "body")

.. _datesdisabled:
.. _datesDisabled:


datesDisabled
Expand All @@ -140,7 +140,7 @@ String, Array. Default: []

Array of date strings or a single date string formatted in the given date format

.. _daysofweekdisabled:
.. _daysOfWeekDisabled:


daysOfWeekDisabled
Expand All @@ -153,7 +153,7 @@ Days of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday).
.. figure:: _static/screenshots/option_daysofweekdisabled.png
:align: center

.. _daysofweekhighlighted:
.. _daysOfWeekHighlighted:


daysOfWeekHighlighted
Expand All @@ -163,8 +163,6 @@ String, Array. Default: []

Days of the week that should be highlighted. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be comma-separated. Example: highlight weekends: ``'06'`` or ``'0,6'`` or ``[0,6]``.

.. _defaultviewdate:


defaultViewDate
---------------
Expand Down Expand Up @@ -193,7 +191,7 @@ Boolean. Default: true

If false the datepicker will not show on a readonly datepicker field.

.. _enddate:
.. _endDate:


endDate
Expand Down
Loading

0 comments on commit 4c70aca

Please sign in to comment.