PHP 클래스 TbSelect2

또한 보기: http://ivaynberg.github.io/select2/
상속: extends CInputWidget
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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.
$form when created via TbActiveForm. This attribute is set to the form that renders the widget
$options
$val the default value.

공개 메소드들

메소드 설명
init ( ) ### .init()
registerClientScript ( $id ) ### .registerClientScript()
run ( ) ### .run()

비공개 메소드들

메소드 설명
setDefaultWidthIfEmpty ( )

메소드 상세

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
public registerClientScript ( $id )

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

$form 공개적으로 프로퍼티

when created via TbActiveForm. This attribute is set to the form that renders the widget
public $form

$options 공개적으로 프로퍼티

public $options

$val 공개적으로 프로퍼티

the default value.
public $val