PHP Class WhDateTimePicker

See also:
Author: Antonio Ramirez ([email protected])
Inheritance: extends CInputWidget
Mostrar archivo Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$events the JavaScript event handlers.
$format the date format.
$iconDate the icon to display when selecting dates
$iconTime the icon to display when selecting times
$pluginOptions pluginOptions to be passed to datetimepicker plugin. Defaults are: - maskInput: true, disables the text input mask - pickDate: true, disables the date picker - pickTime: true, disables de time picker - pick12HourFormat: false, enables the 12-hour format time picker - pickSeconds: true, disables seconds in the time picker - startDate: -Infinity, set a minimum date - endDate: Infinityset a maximum date
$selector string if provided, then no input field will be rendered. It will write the JS code for the specified selector.

Public Methods

Method Description
init ( ) Initializes the widget.
registerClientScript ( ) Registers required css js files
renderField ( ) Renders the field if no selector has been provided
run ( ) Runs the widget.

Method Details

init() public method

Initializes the widget.
public init ( )

registerClientScript() public method

Registers required css js files

renderField() public method

Renders the field if no selector has been provided
public renderField ( )

run() public method

Runs the widget.
public run ( )

Property Details

$events public_oe property

the JavaScript event handlers.
public $events

$format public_oe property

the date format.
public $format

$iconDate public_oe property

the icon to display when selecting dates
public $iconDate

$iconTime public_oe property

the icon to display when selecting times
public $iconTime

$pluginOptions public_oe property

pluginOptions to be passed to datetimepicker plugin. Defaults are: - maskInput: true, disables the text input mask - pickDate: true, disables the date picker - pickTime: true, disables de time picker - pick12HourFormat: false, enables the 12-hour format time picker - pickSeconds: true, disables seconds in the time picker - startDate: -Infinity, set a minimum date - endDate: Infinityset a maximum date
public $pluginOptions

$selector public_oe property

if provided, then no input field will be rendered. It will write the JS code for the specified selector.
public string $selector
return string