Changes between Version 4 and Version 5 of S3/S3GroupedOptionsWidget
- Timestamp:
- 04/01/13 19:52:17 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3GroupedOptionsWidget
v4 v5 53 53 == JQuery UI Widget == 54 54 55 The {{{S3GroupedOptionsWidget}}} uses the {{{groupedopts()}}} widget in {{{jquery.ui.groupedopts.js}}}. This jQueryUI-widget-factory based widget renders a normal SELECT element as one or multiple groups of checkboxes :55 The {{{S3GroupedOptionsWidget}}} uses the {{{groupedopts()}}} widget in {{{jquery.ui.groupedopts.js}}}. This jQueryUI-widget-factory based widget renders a normal SELECT element as one or multiple groups of checkboxes. 56 56 57 '''The widget is instantiated for an element like''': 57 58 59 {{{#!javascript 60 $('#example').groupedopts({columns=3}) 61 }}} 62 63 '''Options''': 64 65 ||'''Option'''||'''Type'''||'''Explanation'''||'''Default'''|| 66 ||columns||integer||number of columns||1|| 67 68 '''Functions''': 69 70 ||'''Function'''||'''Example'''||'''Explanation'''|| 71 ||refresh||$('example').groupedopts('refresh')||Re-draw the widget from the current options/status of the underlying SELECT, e.g. to refresh the widget after Ajax-update of the SELECT|| 72 ||destroy||$('example').groupedopts('destroy')||Removes the widget and shows the underlying SELECT|| 58 73 59 74 ----