everything.html revision 666fb1af175d6536aa882340e6249b6733bf6bf2
0N/A button.onClick(function(){
5501N/A // An alternative to button.get('srcNode').on('click', ...
0N/A button2.on('selectedChange', function(){
0N/A button4.set('disabled', true);
var buttonGroup = new Y.ButtonGroup({
buttons: new Y.Buttons({
srcNodes: Y.all('.group')
buttonGroup.after('selectionChange', function(e){
Y.log('buttonGroup selection changed');
var buttonGroup2 = new Y.ButtonGroup({
buttons: new Y.Buttons({
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.ButtonGenerator(config);