inputEx-library

inputEx  0.7.1

inputEx-library > inputEx > inputEx.TimeIntervalField
Search:
 
Filters

Class inputEx.TimeIntervalField - extends inputEx.CombineField

A field limited to number inputs (floating)

Constructor

inputEx.TimeIntervalField ( options )
Parameters:
options <Object> Added options
  • unit: inputEx.TimeIntervalField.units.MYUNIT (SECOND,MINUTE,HOUR,DAY,MONTH,YEAR)

Properties inherited from inputEx.Field:

Methods

getValue

Integer getValue ( )
Concat the values to return a date
Returns: Integer
the time interval in the field unit

setOptions

void setOptions ( )
Additional options

setValue

void setValue ( val , [sendUpdatedEvt] )
Set the value of both subfields
Parameters:
val <Number> The time interval integer (with the given unit)
[sendUpdatedEvt] <boolean> (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

TimeRange

void TimeRange ( )
Tweaking the TimeField to make a Time Range (two TimeFields) - doesn't show seconds - Minutes by group of 5

toogleEndMinutes

void toogleEndMinutes ( )
Disable the last selector and set it to "00" when the third one's value is 24 (it will be inccorect to have an end superior to 24:00)

Events inherited from inputEx.Field:


Copyright © 2011 Eric Abouaf All rights reserved.