- Extensión "jQuery Chosen" - Arreglos en migraciones para indicar el tipo de tablas InnoDB git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@67 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
29 lines
955 B
Markdown
29 lines
955 B
Markdown
Chosen usage instructions
|
|
===========================
|
|
|
|
1. Checkout source code to your project, for example to ext.chosen.
|
|
2. Use it, as any input widget.
|
|
|
|
Example:
|
|
|
|
$this->widget('ext.chosen.Chosen',array(
|
|
'name' => 'inputName', // input name
|
|
'value' => '2', // selection
|
|
'data' => array( // list of select options
|
|
'1'=>'Option 1',
|
|
'2'=>'Option 2',
|
|
'3'=>'Option 3',
|
|
'4'=>'Option 4',
|
|
),
|
|
));
|
|
|
|
Also you can use it like CHtml helper
|
|
----------------------------------------
|
|
Before this import ext.chosen.Chosen, you can add it to config/main.php or call Yii::import('ext.chosen.Chosen') before usage.
|
|
|
|
Chosen::dropDownList($name, $select, $data, $htmlOptions);
|
|
Chosen::activeDropDownList($model, $attribute, $data, $htmlOptions);
|
|
Chosen::multiSelect($name, $select, $data, $htmlOptions);
|
|
Chosen::activeMultiSelect($model, $attribute, $data, $htmlOptions);
|
|
|