Skip to content
hatashinya edited this page Nov 14, 2012 · 1 revision

Overview

.timePicker(options)
.timePicker(method, arg, ...)

Options

  • required (Boolean) Default: false
    Whether this field is required or not. If required, the users cannot select the empty time value.

  • minutesStep (Integer) Default: 10
    The step of the minutes field.

  • include24 (Boolean) Default: false
    If true, the menu item of 24:00 is shown.

  • timeSeparator (String) Default: ":"
    The separator between the hours field and the minutes field.

Methods

clearTime

.timePicker("clearTime")

Clear the time. If this field is a required field, an error occured.

Returns (jQuery)

getTime

.timePicker("getTime", date)

Get the time value.

Arguments

  • date (Date)
    The date to which this time is applied.

Returns (Date)

(date).getHours(): The hours value.
(date).getMinutes() : The minutes value.

getXSDTime

.timePicker("getXSDTime")

Get the time value as xsd:time format.

Returns (String)

The time value which is formatted as hh::mm::ss.

setTime

.timePicker("setTime", hours, minutes)

Set the time.

Arguments

  • hours (Integer)
    The hours value. (0-24)
  • minmutes (Ingeger)
    The minutes value. (0-59)

Returns (jQuery)

Clone this wiki locally