Roo/bootstrap/Button.js
authorbenny <benny@roojs.com>
Fri, 20 Jul 2018 07:11:53 +0000 (15:11 +0800)
committerbenny <benny@roojs.com>
Fri, 20 Jul 2018 07:11:53 +0000 (15:11 +0800)
Roo/bootstrap/Button.js

index 1f1ae0a..8096728 100644 (file)
@@ -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;