Chosen Widget ¶
Requirements ¶
- Yii 1.1 or above (Chosen requires jQuery 1.4)
Installation ¶
- Download yii-chosen or Clone the files
- Extract into the widgets or extensions folder
Usage ¶
Common usage inside a view ¶
$this->widget('ext.chosen.EChosenWidget');
Using with a jQuery selector ¶
$this->widget('ext.chosen.EChosenWidget',array(
// the select selector
'selector'=>'.chosen',
// Chosen options
'options'=>array(),
));
Changelog ¶
v1.6.1 ¶
- Chosen updated to version 1.2.0.
v1.6.0 ¶
- Chosen updated to version 1.1.0.
v1.5.0 ¶
- Chosen updated to version 1.0.0.
- Default selector for jQuery changed to ".chosen-select".
v1.4.0 ¶
- Chosen updated to version 0.9.13.
v1.3.0 ¶
- Chosen updated to version 0.9.12.
v1.2.0 ¶
- Use CWidget instead of CInputWidget.
v1.1.0 ¶
- Chosen updated to version 0.9.10.
v1.0.0 ¶
- Initial version.
License ¶
yii-chosen is free and unencumbered public domain software.
Another EChosen, for what it is?
In your extension you have extended CInputWidget, but you are not using it features... - Why you have extended it?
If you need widget for chosen, why you are not using existing extension?
If you need CInputWidget, with all chosen features, you can use my extension: http://www.yiiframework.com/extension/chosen
Or, if do not need CInputWidget, you can use another(almost the same as your): http://www.yiiframework.com/extension/echosen
RE: Another EChosen, for what it is?
I'm not sure if this is needed. I wasn't planning to release it here, but did it anyways today.
This is just a up-to-date version of chosen. I'm using this one in ycm module, so I figured I could release it here.
I just updated the code so it will use CWidget, thanks for noticing that one.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.