here im trying to call the centerpanel to collapse it yet it keeps telling me im missing a function? CodeProject: Panel Curve Container - An ASP.NET Custom Control :: Nov 15, 2005 Actually it is missing Design time code implementation, I get a JavaScript error whenever I put the panel in a content area of my http://www.codeproject.com/KB/custom-controls/panelcurvecontainer.aspxHOME |
i looked at the docs and read the forums and i dont see why its having such error appear?
var t = Ext.getCmp('center-panel');
t.collapsed(true);
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
var viewport = new Ext.Viewport({
layout:'border',
items:[
new Ext.BoxComponent({ // raw
region:'north',
el: 'north',
height:32,
margins:'0 0 0 5'
}),{
region:'west',
id:'west-panel',
title:'Navigation Bar',
split:false,
width: 180,
minSize: 175,
maxSize: 300,
collapsible: true,
margins:'25 0 75 0',
layout:'accordion',
layoutConfig:{
animate:true
},
items: [{
contentEl: 'formal',
title:'Formal Reports',
border:true,
iconCls:'nav'
},
{
contentEl: 'dynamic',
title:'Dynamic Reports',
border:true, Squirrelcart v2.3.1 - Release Notes:: If error reporting is set to stricter than defaults, JS errors can occur in function; Code cleanup; OnMouseOver field help in control panel now uses http://mamodonline.co.uk/read_me.htmHOME | Javascript OnClick Hide/Show Div - MindTouch Developer Center Forums:: 10 posts - Last post: Apr 30, 2008Am I missing a step that would allow Javascript to run inside the page? . I think the error is something in the code, here it is:. Code: http://forums.developer.mindtouch.com/showthread.php?t=2588HOME |
iconCls:'nav'
},
{
contentEl: 'adhoc',
title:'AdHoc Reporting',
border:true,
iconCls:'nav'
},
{
contentEl: 'mysavedreports',
title:'My Saved Reports',
border:true,
iconCls:'nav'
},
{
title:'Settings',
//html:'Some settings in here. ',
contentEl: 'settings',
border:false,
iconCls:'settings'
}]
},
{
region:'center',
id:'center-panel',
title:'Running Formal Reports: EPA Report #1',
collapsible: true,
margins:'25 0 0 0',
layout:'border',
items: [{
xtype: 'tabpanel',
region: 'north',
id: 'northtab',
activeTab:0,
plugins: new Ext.ux.TabCloseMenu(),
height: 400,
items: [{
title: 'Tab North',
layout: 'fit',
contentEl: 'center1'
}]
},
{
xtype: 'tabpanel',
id: 'southtab',
region: 'center',
activeTab:0,
plugins: new Ext.ux.TabCloseMenu(),
items: [{
title: 'Tab South',
id: 'test',
layout: 'fit',
contentEl: 'center2',
closable: true
}]
}]
}]
});
collapsed is the configuration option to start the panel at a certain state.
collapse is the method to collapse the panel programatically.
The method is collapse, not collapsed.
Ok could you explain to me Why it is this documentation says its part of the panel?
am i missing something on that?
http://extjs.com/deploy/ext-2.0-alpha1/docs/?class=Ext.TabPanel
The method is collapse, not collapsed.
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |