summaryrefslogtreecommitdiffstats
path: root/src/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs')
-rw-r--r--src/docs/examples.html14
-rw-r--r--src/docs/options.html3
2 files changed, 17 insertions, 0 deletions
diff --git a/src/docs/examples.html b/src/docs/examples.html
index 4765039..a04af2f 100644
--- a/src/docs/examples.html
+++ b/src/docs/examples.html
@@ -182,6 +182,20 @@ $('#slider_example_4').datetimepicker({
<!-- ============= example -->
<div class="example-container">
+ <p>Uses one line dropdowns instead of sliders.</p>
+ <div>
+ <input type="text" name="slider_example_4andHalf" id="slider_example_4andHalf" value="" />
+ </div>
+<pre>
+$('#slider_example_4andHalf').datetimepicker({
+ controlType: 'select',
+ oneLine: true,
+ timeFormat: 'hh:mm tt'
+});</pre>
+ </div>
+
+ <!-- ============= example -->
+ <div class="example-container">
<p>Create your own control by implementing the create, options, and value methods. If you want to use your new control for all instances use the $.timepicker.setDefaults({controlType:myControl}). Here we implement jQueryUI's spinner control (jQueryUI 1.9+).</p>
<div>
<input type="text" name="slider_example_5" id="slider_example_5" value="" />
diff --git a/src/docs/options.html b/src/docs/options.html
index 22fc123..d1b1e2c 100644
--- a/src/docs/options.html
+++ b/src/docs/options.html
@@ -227,6 +227,9 @@
<dt>showTimepicker</dt>
<dd><em>Default: true</em> - Whether to show the timepicker within the datepicker.</dd>
+ <dt>oneLine</dt>
+ <dd><em>Default: false</em> - Try to show the time dropdowns all on one line. This should be used with controlType 'select' and as few units as possible.</dd>
+
<dt>addSliderAccess</dt>
<dd><em>Default: false</em> - Adds the <a href="http://trentrichardson.com/examples/jQuery-SliderAccess/" title="jQueryUI Slider Access Plugin">sliderAccess plugin</a> to sliders within timepicker</dd>