summaryrefslogtreecommitdiffstats
path: root/src/docs
diff options
context:
space:
mode:
authorAndrey Panteleyev <insonifi@gmail.com>2015-06-26 23:11:07 +0300
committerAndrey Panteleyev <insonifi@gmail.com>2015-06-26 23:11:07 +0300
commita165d60c7f057f1c7ba4db45c84bf7ac5a1ed2cb (patch)
treee9e27b3f7e43ae789bd47de9a0349621a646ced7 /src/docs
parent101ba95e8571a50b509a287d6dc623430e631cb0 (diff)
downloadjQuery-Timepicker-Addon-a165d60c7f057f1c7ba4db45c84bf7ac5a1ed2cb.zip
jQuery-Timepicker-Addon-a165d60c7f057f1c7ba4db45c84bf7ac5a1ed2cb.tar.gz
jQuery-Timepicker-Addon-a165d60c7f057f1c7ba4db45c84bf7ac5a1ed2cb.tar.bz2
Adding documentation for timeInput option
Diffstat (limited to 'src/docs')
-rw-r--r--src/docs/examples.html20
-rw-r--r--src/docs/options.html5
2 files changed, 20 insertions, 5 deletions
diff --git a/src/docs/examples.html b/src/docs/examples.html
index ae94ce6..370be36 100644
--- a/src/docs/examples.html
+++ b/src/docs/examples.html
@@ -287,7 +287,21 @@ $('#alt_example_3').datetimepicker({
});
</pre>
</div>
-
+ </div>
+ <h3 id="input_examples">Time Input</h3>
+ <!-- ============= example -->
+ <div class="example-container">
+ <p>Allows for direct input of time string</p>
+ <div>
+ <input type="text" name="input_example_1" id="input_example_1" value="08/20/2014 09:22 -0400" />
+ </div>
+<pre>
+$('#input_example_1').datetimepicker(
+ timeInput: true
+);
+</pre>
+ </div>
+
<!-- ============= example -->
<div class="example-container">
<p>With inline mode using altField:</p>
@@ -541,6 +555,4 @@ $('#utility_example_3').text(JSON.stringify(
$.datepicker.parseTime('HH:mm:ss:l z', "14:36:21:765 +2000", {})
));
</pre>
- </div>
-
-</div> \ No newline at end of file
+</div>
diff --git a/src/docs/options.html b/src/docs/options.html
index 0754fb0..06201ce 100644
--- a/src/docs/options.html
+++ b/src/docs/options.html
@@ -202,7 +202,10 @@
<dl class="defs">
<dt>showButtonPanel</dt>
<dd><em>Default: true</em> - Whether to show the button panel at the bottom. This is generally needed.</dd>
-
+
+ <dt>timeInput</dt>
+ <dd><em>Default: false</em> - Allows direct input in time field</dd>
+
<dt>timeOnly</dt>
<dd><em>Default: false</em> - Hide the datepicker and only provide a time interface.</dd>