From ff3eb662c2dbfd33fdaed33b6e5eed5c92e7c936 Mon Sep 17 00:00:00 2001 From: benny Date: Fri, 20 Jul 2018 15:11:53 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 1f1ae0a23b..8096728597 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -359,10 +359,16 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { { return this.el.hasClass('active'); }, + /** + * set the text of the first selected button + */ setText : function(str) { this.el.select('.roo-button-text',true).first().dom.innerHTML = str; }, + /** + * get the text of the first selected button + */ getText : function() { return this.el.select('.roo-button-text',true).first().dom.innerHTML; -- 2.39.2