everything.html revision 9d2b984ddc990a339c99c2ee8ab13348846a0bcb
1570N/A console.log("Clicked!");
1570N/A // An alternative to button.get('srcNode').on('click', ...
1986N/A button2.on('selectedChange', function(){
var buttonGroup = new Y.ButtonGroup({
srcNodes: Y.all('.group'),
buttonGroup.after('selectionChange', function(e){
Y.log('buttonGroup selection changed');
var buttonGroup2 = new Y.ButtonGroup({
srcNodes: Y.all('.multigroup'),
buttonGroup2.after('selectionChange', function(e){
var selection = buttonGroup2.get('selection');
Y.Buttons adds nothing useful for the gernator buttons, so just add the class and a listener.
Y.all('.generator').addClass('yui3-button').on('click', function(e){
type = e.target.getAttribute('data-type');
config.type = 'push';
config.disabled = true;
config.type = type;
button = new Y.Button(config);