YUI Doc Demo

Timepicker  0.0.1

YUI Doc Demo > Timepicker > Y.Saw.Timepicker
Search:
 
Filters

Class Y.Saw.Timepicker - extends Widget

a YUI 3 implementation of the classic jQuery timepicker widget

Methods

_syncTime

protected void _syncTime ( )
This method syncs the value of time object, including building the strings for 12hr and 24hr also fires a 'timeset' event
Returns: void

makeCell

protected void makeCell ( str , rowId )
Creates a cell based on the little template defined in "str"
Parameters:
str <String> The contents of the cell
rowId <String> the unique classname for the row to identify it later
Returns: void

pad

protected void pad ( num )
Pad numbers to two digits
Parameters:
num <Number> the number to bad
Returns: void

toggle

void toggle ( )
Show/hide the widget
Returns: void

Events

cellclick

cellclick ( event )
Fires when a cell is clicked on
Parameters:
event <Event.Facade> An Event Facade object

timeset

timeset ( the )
Fires when a new time has been set (after the time strings) have been built. Use this event rather than timeChange.
Parameters:
the <Object> time attribute object with the following attributes
hour
The 12 hour hour
minute
The minutes
s12hour
A string representing the 12 hour time, with a seperator and an am/pm indicator as defined in strings
s24hour
A string representing the 24 hour time, with the seperator defined in strings


Copyright © 2009 Yahoo! Inc. All rights reserved.