Yii 1.1: chosen-widget

Yii Widget for Chosen - Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly.
3 followers

Chosen Widget

Requirements

  • Yii 1.1 or above (Chosen requires jQuery 1.4)

Installation

  1. Download yii-chosen or Clone the files
  2. 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.

Total 2 comments

#10974 report it
janisto at 2012/12/07 10:12am
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.

#10973 report it
Bogdan Savluk at 2012/12/07 09:47am
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

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: Other Open Source License
  • Developed by: janisto
  • Category: User Interface
  • Votes: +1 / -4
  • Downloaded: 568 times
  • Created on: Dec 7, 2012
  • Last updated: Oct 9, 2014
  • Tags: widget, chosen