PHP Класс WhDateRangePicker

Наследование: extends CInputWidget
Показать файл Открыть проект

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

Свойство Тип Описание
$callback JS Callback for Daterange picker
$pluginOptions pluginOptions to be passed to daterange picker plugin
$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.

Приватные методы

Метод Описание
setDaysOfWeekNames ( ) Sets days of week names if no locale settings were made to the plugin options.
setLocaleSettings ( ) If user did not provided the names of weekdays and months in $this->pluginOptions['locale'] (which he should not care about anyway) then we populate this names from Yii's locales database.
setMonthNames ( ) Sets month names if no locale settings were made to the plugin options.

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

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 ( )

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

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

JS Callback for Daterange picker
public $callback

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

pluginOptions to be passed to daterange picker plugin
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