ButtonGroup: add public buttonOptions method

This commit is contained in:
rolux 2012-08-29 17:42:30 +02:00
parent 5e39926816
commit c4c49fd1d1

View file

@ -123,19 +123,26 @@ Ox.ButtonGroup = function(options, self) {
}
/*@
disableButton <f> disableButton
disableButton <f> Disable button
@*/
that.disableButton = function(id) {
getButtonById(id).options({disabled: true});
};
/*@
enableButton <f> enableButton
enableButton <f> Enable button
@*/
that.enableButton = function(id) {
getButtonById(id).options({disabled: false});
};
/*
buttonOptions <f> Get or set button options
*/
that.buttonOptions = function(id, options) {
return getButtonById(id).options(options);
};
return that;
};