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

Overview

.timeRangePicker(options)
.timeRangePicker(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 in the end minutes field.

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

  • rangeSeparator (String) Default: "-"
    The separator between the start time and the end time.

Methods

clearTimeRange

.timeRangePicker("clearTimeRange")

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

Returns (jQuery)

getStartTime

.timeRangePicker("getStartTime", date)

Get the start time value.

Arguments

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

Returns (Date)

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

getXSDStartTime

.timeRangePicker("getXSDStartTime")

Get the start time value as xsd:time format.

Returns (String)

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

getEndTime

.timeRangePicker("getEndTime", date)

Get the end time value.

Arguments

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

Returns (Date)

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

getXSDEndTime

.timeRangePicker("getXSDEndTime")

Get the end time value as xsd:time format.

Returns (String)

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

setTimeRange

.timeRangePicker("setTimeRange", startHours, startMinutes, endHours, endMinutes)

Set the time range.

Arguments

  • startHours (Integer)
    The start hours value. (0-24)
  • startMinmutes (Ingeger)
    The start minutes value. (0-59)
  • endHours (Integer)
    The end hours value. (0-24)
  • endMinmutes (Ingeger)
    The end minutes value. (0-59)

Returns (jQuery)