You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+23-3
Original file line number
Diff line number
Diff line change
@@ -220,7 +220,19 @@ <h3>Time Field Options</h3>
220
220
<dlclass="defs">
221
221
222
222
<dt>controlType</dt>
223
-
<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.</dd>
223
+
<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.
224
+
<pre>{
225
+
create: function(tp_inst, obj, unit, val, min, max, step){
226
+
// generate whatever controls you want here, just return obj
227
+
},
228
+
options: function(tp_inst, obj, unit, opts, val){
229
+
// if val==undefined return the value, else return obj
230
+
},
231
+
value: function(tp_inst, obj, unit, val){
232
+
// if val==undefined return the value, else return obj
233
+
}
234
+
}</pre>
235
+
</dd>
224
236
225
237
<dt>showHour</dt>
226
238
<dd><em>Default: true</em> - Whether to show the hour slider.</dd>
@@ -345,8 +357,16 @@ <h3>Other Options</h3>
345
357
<dt>maxDateTime</dt>
346
358
<dd><em>Default: null</em> - Date object of the maximum datetime allowed. Also Available as maxDate.</dd>
347
359
348
-
<dt>strict</dt>
349
-
<dd><em>Default: true</em> - Requires the time to exactly match the timeFormat when parsing. False will attempt to allow Javascript Date() to parse the time string.</dd>
360
+
<dt>parse</dt>
361
+
<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:
0 commit comments