Extends: Object
Implements: Options, Events
A ButtonSet manages a set of Jx.Button instances by ensuring that only one of the buttons is active. All the buttons need to have been created with the toggle option set to true for this to work.
var toolbar = new Jx.Toolbar('bar');
var buttonSet = new Jx.ButtonSet();
var tab1 = new Jx.Button({label: 'b1', toggle:true, contentID: 'content1'});
var tab2 = new Jx.Button({label: 'b2', toggle:true, contentID: 'content2'});
var tab3 = new Jx.Button({label: 'b3', toggle:true, contentID: 'content3'});
var tab4 = new Jx.Button({label: 'b4', toggle:true, contentURL: 'test_content.html'});
buttonSet.add(b1,b2,b3,b4);| change | the current button has changed |
Copyright © 2008, DM Solutions Group Inc.
This file is licensed under an MIT style license
| Jx. | Extends: Object |
| Properties | |
| buttons | {Array} array of buttons that are managed by this button set |
| Constructor | |
| Jx. | Create a new instance of Jx.ButtonSet |
| Functions | |
| add | Add one or more Jx.Buttons to the ButtonSet. |
| remove | Remove a button from this Button. |
| setActiveButton | Set the active button to the one passed to this method |
| selectionChanged | Handle selection changing on the buttons themselves and activate the appropriate button in response. |
Create a new instance of Jx.ButtonSet
| options | an options object, only event handlers are supported as options at this time. |
remove : function( button )
Remove a button from this Button.
| button | {Jx.Button} the button to remove. |
setActiveButton: function( button )
Set the active button to the one passed to this method
| button | {Jx.Button} the button to make active. |
Handle selection changing on the buttons themselves and activate the appropriate button in response.
| button | {Jx.Button} the button to make active. |
Add one or more Jx.Buttons to the ButtonSet.
add : function()
Remove a button from this Button.
remove : function( button )
Set the active button to the one passed to this method
setActiveButton: function( button )