From c4c49fd1d12349ce2cd02ad46e4829e8825a3f38 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 29 Aug 2012 17:42:30 +0200 Subject: [PATCH] ButtonGroup: add public buttonOptions method --- source/Ox.UI/js/Form/ButtonGroup.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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; };