everything.html revision b28e90463180540ce576a7941dcade8d95beee76
4618N/A console.log("Clicked!");
4618N/A // An alternative to button.get('srcNode').on('click', ...
4618N/A button2.on('selectedChange', function(){
3315N/A var buttonGroup = new Y.ButtonGroup({
4618N/A buttonGroup.after('selectionChange', function(e){
4618N/A var buttonGroup2 = new Y.ButtonGroup({
4618N/A buttonGroup2.after('selectionChange', function(e){
4618N/A var selection = buttonGroup2.get('selection');
4618N/A Y.Buttons adds nothing useful for the gernator buttons, so just add the class and a listener.
4618N/A type = e.target.getAttribute('data-type');
4618N/A config.type = 'push';
3315N/A config.disabled = true;
4618N/A config.type = type;