From 0ea770533d1de522a95346e925902135a34f98ed Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 2 Dec 2015 10:54:35 +0800 Subject: [PATCH] Roo/bootstrap/Component.js --- Roo/bootstrap/Component.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Component.js b/Roo/bootstrap/Component.js index 7d426f2ed3..cbdcdb717e 100644 --- a/Roo/bootstrap/Component.js +++ b/Roo/bootstrap/Component.js @@ -340,9 +340,19 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, { this.fireEvent('childrenrendered', this); return cn; - } - + }, + show : function() + { + this.el.removeClass('hidden'); + }, + hide: function() + { + if (!this.el.hasClass('hidden')) { + this.el.addClass('hidden'); + } + + } }); \ No newline at end of file -- 2.39.2