Permalink
Browse files

Custom valid hours, minutes and seconds can now be specified

  • Loading branch information...
stefangabos committed Aug 13, 2017
1 parent 11adcf9 commit c58ce34e5d226d19977c5a68e2d69cda4d239278
Showing with 100 additions and 15 deletions.
  1. +27 −0 README.md
  2. +1 −1 dist/zebra_datepicker.min.js
  3. +36 −7 dist/zebra_datepicker.src.js
  4. +36 −7 src/zebra_datepicker.src.js
View
@@ -245,6 +245,33 @@ var datepicker = $('selector').data('Zebra_DatePicker');
An array of enabled dates in the same format as required for <em>disabled_dates</em> property. To be used together with the <em>disabled_dates</em> property by first setting the <em>disabled_dates</em> property to something like <code>[* * * *]</code> <em>(which will disable everything)</em> and the setting the <em>enabled_dates</em> property to, say, <code>[* * * 0,6]</code> to enable just weekends.
</td>
</tr>
<tr>
<td valign="top"><strong>enabled_hours</strong></td>
<td valign="top"><em>mixed</em></td>
<td valign="top"><code>FALSE</code><br><small>all hours are selectable</small></td>
<td valign="top">
An array of selectable hours.<br><br>
<em>Makes sense only when <code>format</code> contains one of the following characters: <code>H</code>, <code>G</code>, <code>h</code>, <code>g</code>. Valid values are between <code>0-24</code> (not padded with <code>0</code>!) when <code>format</code> contains <code>H</code> or <code>G</code> characters, and between <code>1-12</code> (not padded with <code>0</code>!) when <code>format</code> contains <code>h</code> or <code>g</code> characters.</em>
</td>
</tr>
<tr>
<td valign="top"><strong>enabled_minutes</strong></td>
<td valign="top"><em>mixed</em></td>
<td valign="top"><code>FALSE</code><br><small>all minutes are selectable</small></td>
<td valign="top">
An array of selectable minutes.<br><br>
<em>Makes sense only when <code>format</code> contains the <code>i</code> character. Valid values are between <code>0-59</code> (not padded with <code>0</code>!)
</td>
</tr>
<tr>
<td valign="top"><strong>enabled_seconds</strong></td>
<td valign="top"><em>mixed</em></td>
<td valign="top"><code>FALSE</code><br><small>all seconds are selectable</small></td>
<td valign="top">
An array of selectable seconds.<br><br>
<em>Makes sense only when <code>format</code> contains the <code>s</code> character. Valid values are between <code>0-59</code> (not padded with <code>0</code>!)
</td>
</tr>
<tr>
<td valign="top"><strong>first_day_of_week</strong></td>
<td valign="top"><em>integer</em></td>
Oops, something went wrong.

0 comments on commit c58ce34

Please sign in to comment.