Options
Basic syntax
$(selector, context).controlgroup (options);
| Option | Description |
|---|
| direction | By default, the control-group displays its controls in a horizontal layout. Use this option to use a vertical layout instead. |
| disabled | Disables the controlgroup if set to true. |
| items | Which descendant elements to initialize as their respective widgets. Two elements have special behavior:
controlgroupLabel
spinner |
| onlyVisible | Sets whether to exclude invisible children in the assignment of rounded corners. |
Methods
Basic syntax
$(selector, context).button ("action", params);
| Method | Description |
|---|
| destroy() | Removes the controlgroup functionality completely. This will return the element back to its pre-init state. |
| disable() | Disables the controlgroup. |
| enable() | Enables the controlgroup. |
| instance() | Retrieves the controlgroup’s instance object. If the element does not have an associated instance, undefined is returned. |
| option( optionName ) | Gets the value currently associated with the specified optionName. |
| option() | Gets an object containing key/value pairs representing the current controlgroup options hash. |
| option( optionName, value ) | Sets the value of the controlgroup option associated with the specified optionName. |
| option( options ) | Sets one or more options for the controlgroup. |
| refresh() | Process any widgets that were added or removed directly in the DOM. Results depend on the items option. |
| widget() | Returns a jQuery object containing the controlgroup. |
Event
| Event Method | Description |
|---|
| create( event, ui ) | Triggered when the controlgroup is created. |