diff --git a/source/Ox.UI/js/Form/ButtonGroup.js b/source/Ox.UI/js/Form/ButtonGroup.js index 4b537db4..93cc27ad 100644 --- a/source/Ox.UI/js/Form/ButtonGroup.js +++ b/source/Ox.UI/js/Form/ButtonGroup.js @@ -123,19 +123,26 @@ Ox.ButtonGroup = function(options, self) { } /*@ - disableButton disableButton + disableButton Disable button @*/ that.disableButton = function(id) { getButtonById(id).options({disabled: true}); }; /*@ - enableButton enableButton + enableButton Enable button @*/ that.enableButton = function(id) { getButtonById(id).options({disabled: false}); }; + /* + buttonOptions Get or set button options + */ + that.buttonOptions = function(id, options) { + return getButtonById(id).options(options); + }; + return that; };