Yii Widget for Chosen - Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly.
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.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 ¶
License ¶
yii-chosen is free and unencumbered public domain software.
Total 2 comments
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.
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
Leave a comment
Please login to leave your comment.