group.js revision 800a6a9307a3bbe026f640d20ef73c3d627efc37
/**
* TODO
*
* @module ButtonGroup
* @main ButtonGroup
* @since 3.5.0
*/
/**
* Creates a ButtonGroup
*
* @class ButtonGroup
* @extends Base
* @param config {Object} Configuration object
* @constructor
*/
function ButtonGroup(config) {
}
/* ButtonGroup extends the Base class */
/**
* @method initializer
* @description Internal init() handler.
* @param config {Object} Config object.
* @private
*/
initializer: function(config){
}
});
}
}, this);
}
},
/**
* @method getButtons
* @description
* @public
*/
getButtons: function() {
},
/**
* @method getSelectedButtons
* @description
* @public
*/
getSelectedButtons: function() {
}
});
return selected;
},
/**
* @method getSelectedValues
* @description
* @public
*/
getSelectedValues: function() {
selected = this.getSelectedButtons();
});
return values;
},
/**
* @method addButton
* @description
* @public
*/
if (type === 'checkbox') {
}
else if (type === 'radio') {
}
},
/**
* @method _onButtonClick
* @description
* @protected
*/
_onRadioButtonClick: function(e) {
var clickedButton = e.target;
var selectedButtons = this.getSelectedButtons();
});
// Fire change event
this.fire('selectionChange');
}
else {
// TODO: anything?
}
},
/**
* @method _onButtonClick
* @description
* @protected
*/
_onCBButtonClick: function(e) {
// Fire change event
this.fire('selectionChange');
}
}, {
/**
* Array of attributes
*
* @property ATTRS
* @type {Array}
* @private
* @static
*/
ATTRS: {
type: {
value: 'radio'
}
}
});
// -- Static Properties ----------------------------------------------------------
/**
* Name of this component.
*
* @property NAME
* @type String
* @static
*/
// Export ButtonGroup
Y.ButtonGroup = ButtonGroup;