ButtonGroup: add public buttonOptions method
This commit is contained in:
parent
5e39926816
commit
c4c49fd1d1
1 changed files with 9 additions and 2 deletions
|
@ -123,19 +123,26 @@ Ox.ButtonGroup = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
disableButton <f> disableButton
|
disableButton <f> Disable button
|
||||||
@*/
|
@*/
|
||||||
that.disableButton = function(id) {
|
that.disableButton = function(id) {
|
||||||
getButtonById(id).options({disabled: true});
|
getButtonById(id).options({disabled: true});
|
||||||
};
|
};
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
enableButton <f> enableButton
|
enableButton <f> Enable button
|
||||||
@*/
|
@*/
|
||||||
that.enableButton = function(id) {
|
that.enableButton = function(id) {
|
||||||
getButtonById(id).options({disabled: false});
|
getButtonById(id).options({disabled: false});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
buttonOptions <f> Get or set button options
|
||||||
|
*/
|
||||||
|
that.buttonOptions = function(id, options) {
|
||||||
|
return getButtonById(id).options(options);
|
||||||
|
};
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue