-
22 Mar 2011 7:02 AM #1
DomHelper to create new collapsible Panel
DomHelper to create new collapsible Panel
Hi,
I'm new to ExtJs and I'm trying to create a collapsible panel and would like to insert it into the Dom. I'm doing it as follows:
However, it just shows up the html when the panel is inserted. I don't see any title bar or title or any collapsible functionality.Code:this.foo_holder = Ext.DomHelper.append(document.body, [{id : 'testdiv'}]); var fooPanel = { xtype : 'panel', height : 100, title : 'fooPanel', titleCollapse : true, collapsed : true, collapsible : true, html : 'Blah Blah' }; Ext.DomHelper.append(this.foo_holder, fooPanel);
When I create the same panel before the dom is rendered, it shows up properly. But I need to add/remove panels later on.
Can anyone help ?
Similar Threads
-
[2.2.x] Panel.setIconClass breaks for any collapsible panel
By jay@moduscreate.com in forum Ext 2.x: BugsReplies: 4Last Post: 14 Oct 2009, 4:07 AM -
[FIXED][3.0.0] setIconClass() on collapsible Ext.Panel creates duplicate panel icon
By Lukman in forum Ext 3.x: BugsReplies: 3Last Post: 16 Jul 2009, 3:49 PM -
[2.0.2][FIXED] DomHelper.createDom won't create text node
By Condor in forum Ext 2.x: BugsReplies: 1Last Post: 28 Mar 2008, 8:43 AM -
DomHelper: cannot create a label tag
By e.e.coli in forum Ext 1.x: BugsReplies: 6Last Post: 30 Oct 2006, 12:16 PM


Reply With Quote