PHP Class TbTimePicker

Inheritance: extends CInputWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$events the JavaScript event handlers.
$form TbActiveForm
$htmlOptions the HTML attributes for the widget container.
$options the options for the Bootstrap JavaScript plugin. Available options: template string 'dropdown' (default), Show picker in a dropdown 'modal', Show picker in a modal false, Don't show a widget minuteStep integer 15 Specify a step for the minute field. showSeconds boolean false Show the seconds field. secondStep integer 15 Specify a step for the second field. defaultTime string 'current' (default) Set to the current time. 'value' Set to inputs current value false Do not set a default time showMeridian boolean true (default) 12hr mode false24hr mode showInputs boolean true (default )Shows the text inputs in the widget. false Hide the text inputs in the widget disableFocus boolean false Disables the input from focusing. This is useful for touch screen devices that display a keyboard on input focus. modalBackdrop boolean false Show modal backdrop.

Public Methods

Method Description
registerClientScript ( string $id ) Registers required javascript files
run ( ) Runs the widget.

Method Details

registerClientScript() public method

Registers required javascript files
public registerClientScript ( string $id )
$id string

run() public method

Runs the widget.
public run ( )

Property Details

$events public property

the JavaScript event handlers.
public $events

$form public property

public TbActiveForm $form
return TbActiveForm

$htmlOptions public property

the HTML attributes for the widget container.
public $htmlOptions

$options public property

the options for the Bootstrap JavaScript plugin. Available options: template string 'dropdown' (default), Show picker in a dropdown 'modal', Show picker in a modal false, Don't show a widget minuteStep integer 15 Specify a step for the minute field. showSeconds boolean false Show the seconds field. secondStep integer 15 Specify a step for the second field. defaultTime string 'current' (default) Set to the current time. 'value' Set to inputs current value false Do not set a default time showMeridian boolean true (default) 12hr mode false24hr mode showInputs boolean true (default )Shows the text inputs in the widget. false Hide the text inputs in the widget disableFocus boolean false Disables the input from focusing. This is useful for touch screen devices that display a keyboard on input focus. modalBackdrop boolean false Show modal backdrop.
public $options