PHP Class WhSelect2

Author: Antonio Ramirez ([email protected])
Inheritance: extends CInputWidget
Show file Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$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

Public Methods

Method Description
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.

Method Details

init() public method

Initializes the widget.
public init ( )

registerClientScript() public method

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

renderField() public method

Renders the select2 field
public renderField ( )

run() public method

Runs the widget.
public run ( )

Property Details

$asDropDownList public property

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

$data public property

@param data for generating the list options (value=>display)
public array $data
return array

$events public property

the JavaScript event handlers.
public $events

$language public property

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

$pluginOptions public property

the plugin options
public $pluginOptions