A simple plugin which brings chosen.js in symfony's choice widgets
JavaScript PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/widget
web
README.md

README.md

sfChosenSelectPlugin

Fancy selects

sfChosenSelectPlugin lets you use chosen.js for your selects.

Installation

You can clone this repo via git:

git clone git@github.com:congow/sfChosenSelectPlugin.git

or you can install it as an external SVN dependency:

svn pe svn:externals plugins
sfChosenSelectPlugin https://svn.github.com/congow/sfChosenSelectPlugin.git

or checkout via SVN:

svn co https://svn.github.com/congow/sfChosenSelectPlugin.git plugins/sfChosenSelectPlugin

Don't forget to enable it in your application ( ProjectConfiguration::setup() ):

$this->enablePlugins('sfChosenSelectPlugin');

Usage

Every time you want to apply chosenJS to one of your selects you only need to set the renderer class:

$widget->setOption('renderer_class', 'sfWidgetFormChosenChoice');