Options
Basic syntax
$(selector, context).buttonset (options);
| Option | Description |
|---|
| disabled | Disables the buttonset if set to true. |
| items | Which descendant elements to convert manage as buttons. |
Methods
Basic syntax
$(selector, context).buttonset ("action", params);
| Method | Description |
|---|
| destroy() | Removes the buttonset functionality completely. This will return the element back to its pre-init state. |
| disable() | Disables the buttonset. |
| enable() | Enables the buttonset. |
| instance() | Retrieves the buttonset’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 buttonset options hash. |
| option( optionName, value ) | Sets the value of the buttonset option associated with the specified optionName. |
| option( options ) | Sets one or more options for the buttonset. |
| 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 buttonset. |
Event
| Event Method | Description |
|---|
| create( event, ui ) | Triggered when the buttonset is created. |