Simple form enhancement with jQueryUI but without Zii.
v2.2 it's a major change over the extension. I used multiselect widget instead of selectmenu from the jQueryUI company. Also I massacred the multiselect menu for displaying listboxes.
A modified version of jquery-cascade for this extension
Usage:
$this->widget(
'application.extensions.JQuiFormEnhancer.JQuiFormEnhancer',
array('formId'=>'id-form'));
for date fields add class "date"
I added in the main widget js (ui.formenhancer.js) default parameters for dropdown and for filtering. If you need to have different parameters you have to add some options for dropdown
1) settings: a string that represents the object to configure “{….}”
2) filter: options for filtering (unfortunately not many, we have to wait for the developer to expose the filtering function) “{….}”
3) size: a standard html attribute that trugger the display of a listbox instead of a dropdown
I’ve added 3 new parameters in case you don’t want to load js for: “select” for multipleselect widget, “list” for listselect widget, “filter” for filter plugin. If you don’t have such elements in your form you could save some traffic.
For multiple select do not forget to add brackets “[]” at the end of the id of the dropdown widget.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.