Interface TimePickerObject

Hierarchy

Index

Properties

Methods

Properties

public $node: JQuery

The picker's relative input element wrapped as a jQuery object.

public $root: JQuery

The picker's relative root holder element wrapped as a jQuery object.

Methods

public clear(): TimePickerObject

Clear the value in the picker's input element.

Returns

TimePickerObject

public close(withFocus?: boolean): TimePickerObject

Parameters

  • withFocus?: boolean optional

Returns

TimePickerObject

public get(): string

Short for picker.get('value')

Returns

string

public get(thing: string): any

Get the properties, objects, and states that make up the current state of the picker.

Parameters

  • thing: string

Returns

any

public get(thing: "'value'"): string

Returns the string value of the picker's input element.

Parameters

  • thing: "'value'"

Returns

string

public get(thing: "'select'"): TimePickerItemObject

Returns the item object that is visually selected.

Parameters

  • thing: "'select'"

Returns

TimePickerItemObject

public get(thing: "'highlight'"): TimePickerItemObject

Returns the item object that is visually highlighted.

Parameters

  • thing: "'highlight'"

Returns

TimePickerItemObject

public get(thing: "'view'"): TimePickerItemObject

Returns the item object that sets the current view.

Parameters

  • thing: "'view'"

Returns

TimePickerItemObject

public get(thing: "'min'"): TimePickerItemObject

Returns the item object that limits the picker's lower range.

Parameters

  • thing: "'min'"

Returns

TimePickerItemObject

public get(thing: "'max'"): TimePickerItemObject

Returns the item object that limits the picker's upper range.

Parameters

  • thing: "'max'"

Returns

TimePickerItemObject

public get(thing: "'open'"): boolean

Returns a boolean value of whether the picker is open or not.

Parameters

  • thing: "'open'"

Returns

boolean

public get(thing: "'start'"): boolean

Returns a boolean value of whether the picker has started or not.

Parameters

  • thing: "'start'"

Returns

boolean

public get(thing: "'id'"): number

Returns a unique 9-digit integer that is the ID of the picker.

Parameters

  • thing: "'id'"

Returns

number

public get(thing: "'disable'"): Array<any>

Returns an array of items that determine which item objects to disable on the picker.

Parameters

  • thing: "'disable'"

Returns

Array<any>

public get(thing: string, format: string): string

Returns a formatted string for the item object specified by thing

Parameters

  • thing: string
  • format: string

Returns

string

public on(methodName: any, callback: () => void): TimePickerObject

Bind callbacks to get fired off when the relative picker method is called.

Parameters

  • methodName: any
  • callback: () => void

Returns

TimePickerObject

public on(callbackObject: CallbackObject): TimePickerObject

Bind multiple callbacks at once to get fired off when the relative picker method is called.

Parameters

Returns

TimePickerObject

public open(withoutFocus?: boolean): TimePickerObject

Parameters

  • withoutFocus?: boolean optional

Returns

TimePickerObject

public render(entirePicker?: boolean): TimePickerObject

Refresh the picker box after adding something to the holder. By default, only the "face" of the picker (i.e. the box element) has it’s contents re-rendered. To render the entire picker from the root up, pass true as the first argument.

Parameters

  • entirePicker?: boolean optional

Returns

TimePickerObject

public set(thing: string, value?: any): TimePickerObject

Set the properties, objects, and states to change the state of the picker.

Parameters

  • thing: string
  • value?: any optional

Returns

TimePickerObject

public set(things: TimePickerSetThings): TimePickerObject

Parameters

Returns

TimePickerObject

public start(): TimePickerObject

Rebuild the picker.

Returns

TimePickerObject

public stop(): TimePickerObject

Destroy the picker.

Returns

TimePickerObject

public trigger(event: string): TimePickerObject

Trigger callbacks that have been queued up using the the on method.

Parameters

  • event: string

Returns

TimePickerObject