summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>