inputEx - TimeField Usage

Basic TimeField creation

Use the following code to create a basic inputEx TimeField.

:
:
1field = new inputEx.TimeField({ 
2    parentEl: 'container1',  
3    value:'15:17:34' 
4}); 
5var button = inputEx.cn('button'nullnull'getValue'); 
6YAHOO.util.Event.addListener(button, "click",function() { 
7    alert(field.getValue()); 
8}); 
9YAHOO.util.Dom.get('container1').appendChild(button); 
view plain | print | ?

Change separators

Use the separators attribute from CombineField to change the separator strings.

h
m
s
1new inputEx.TimeField({ 
2    parentEl: 'container2',  
3    separators: [false,"h","m","s"], 
4    value:'15:17:34' 
5}); 
view plain | print | ?