Skip to content

Commit

Permalink
Custom valid hours, minutes and seconds can now be specified
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangabos committed Aug 13, 2017
1 parent 11adcf9 commit c58ce34
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 15 deletions.
27 changes: 27 additions & 0 deletions README.md
Expand Up @@ -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>
Expand Down

0 comments on commit c58ce34

Please sign in to comment.