diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2015-02-10 09:33:46 -0500 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2015-02-10 09:33:46 -0500 |
commit | 38589abfc802dc9224464e8cc6bd887ae73c07eb (patch) | |
tree | 76395594476c7f277b5af0c8597645363e02f27f /src/docs/examples.html | |
parent | df9b22e11e91dd3604b6a4daad79802acc54a91e (diff) | |
download | jQuery-Timepicker-Addon-38589abfc802dc9224464e8cc6bd887ae73c07eb.zip jQuery-Timepicker-Addon-38589abfc802dc9224464e8cc6bd887ae73c07eb.tar.gz jQuery-Timepicker-Addon-38589abfc802dc9224464e8cc6bd887ae73c07eb.tar.bz2 |
#782 - Adds oneLine option for controlType select
Diffstat (limited to 'src/docs/examples.html')
-rw-r--r-- | src/docs/examples.html | 14 |
1 files changed, 14 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="" /> |