PHP Класс WhSelect2

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

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

Свойство Тип Описание
$asDropDownList whether to display a dropdown select box or use it for tagging
$data array @param data for generating the list options (value=>display)
$events the JavaScript event handlers.
$language locale. Defaults to null. Possible values: "it"
$pluginOptions the plugin options

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

Метод Описание
init ( ) Initializes the widget.
registerClientScript ( ) Registers required client script for bootstrap select2. It is not used through bootstrap->registerPlugin in order to attach events if any
renderField ( ) Renders the select2 field
run ( ) Runs the widget.

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

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

Initializes the widget.
public init ( )

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

Registers required client script for bootstrap select2. It is not used through bootstrap->registerPlugin in order to attach events if any

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

Renders the select2 field
public renderField ( )

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

Runs the widget.
public run ( )

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

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

whether to display a dropdown select box or use it for tagging
public $asDropDownList

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

@param data for generating the list options (value=>display)
public array $data
Результат array

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

the JavaScript event handlers.
public $events

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

locale. Defaults to null. Possible values: "it"
public $language

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

the plugin options
public $pluginOptions