diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2013-07-29 20:21:40 -0400 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2013-07-29 20:21:40 -0400 |
commit | db89d8e5551c093722e053fca0b01cd2a069d077 (patch) | |
tree | 79d7430cbcf167bc3aa0a897256e6810f6583568 /src/docs/options.html | |
parent | 867bcec2a723bd0bf063ca728268e517091d4131 (diff) | |
download | jQuery-Timepicker-Addon-db89d8e5551c093722e053fca0b01cd2a069d077.zip jQuery-Timepicker-Addon-db89d8e5551c093722e053fca0b01cd2a069d077.tar.gz jQuery-Timepicker-Addon-db89d8e5551c093722e053fca0b01cd2a069d077.tar.bz2 |
Clean up docs and readme
Diffstat (limited to 'src/docs/options.html')
-rw-r--r-- | src/docs/options.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/docs/options.html b/src/docs/options.html index 583426c..4c62358 100644 --- a/src/docs/options.html +++ b/src/docs/options.html @@ -83,15 +83,15 @@ <dt>controlType</dt> <dd><em>Default: 'slider'</em> - Whether to use 'slider' or 'select'. If 'slider' is unavailable through jQueryUI, 'select' will be used. For advanced usage you may pass an object which implements "create", "options", "value" methods to use controls other than sliders or selects. See the _controls property in the source code for more details. <pre>{ -create: function(tp_inst, obj, unit, val, min, max, step){ -// generate whatever controls you want here, just return obj -}, -options: function(tp_inst, obj, unit, opts, val){ -// if val==undefined return the value, else return obj -}, -value: function(tp_inst, obj, unit, val){ -// if val==undefined return the value, else return obj -} + create: function(tp_inst, obj, unit, val, min, max, step){ + // generate whatever controls you want here, just return obj + }, + options: function(tp_inst, obj, unit, opts, val){ + // if val==undefined return the value, else return obj + }, + value: function(tp_inst, obj, unit, val){ + // if val==undefined return the value, else return obj + } }</pre> </dd> @@ -239,12 +239,12 @@ value: function(tp_inst, obj, unit, val){ <dt>parse</dt> <dd><em>Default: 'strict'</em> - How to parse the time string. Two methods are provided: 'strict' which must match the timeFormat exactly, and 'loose' which uses javascript's new Date(timeString) to guess the time. You may also pass in a function(timeFormat, timeString, options) to handle the parsing yourself, returning a simple object: <pre>{ -hour: 19, -minute: 10, -second: 23, -millisec: 45, -microsec: 23, -timezone: '-0400' + hour: 19, + minute: 10, + second: 23, + millisec: 45, + microsec: 23, + timezone: '-0400' }</pre> </dd> </dl> |