PHP Класс WhDateTimePicker

См. также:
Автор: Antonio Ramirez ([email protected])
Наследование: extends CInputWidget
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
init ( ) Initializes the widget.
registerClientScript ( ) Registers required css js files
renderField ( ) Renders the field if no selector has been provided
run ( ) Runs the widget.

Описание методов

init() публичный Метод

Initializes the widget.
public init ( )

registerClientScript() публичный Метод

Registers required css js files

renderField() публичный Метод

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

run() публичный Метод

Runs the widget.
public run ( )

Описание свойств

$events публичное свойство

the JavaScript event handlers.
public $events

$format публичное свойство

the date format.
public $format

$iconDate публичное свойство

the icon to display when selecting dates
public $iconDate

$iconTime публичное свойство

the icon to display when selecting times
public $iconTime

$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
public $pluginOptions

$selector публичное свойство

if provided, then no input field will be rendered. It will write the JS code for the specified selector.
public string $selector
Результат string