PDA

View Full Version : how to add portal to colum item 0 ?



koko2589
8 May 2009, 3:31 AM
this add but i want to add to colum 1 item 0

text: 'add portal 1', iconCls: 'burger-16x16'
, handler: function () {
var c= Ext.getCmp('column1')
c.add({
title: 'Task Completed',
draggable:true,
id:'tasks-complete',
collapsible:true,
frame:true,
html: 'portal add to column1'
});
c.doLayout();
}

i try not good

text: 'add portal 1', iconCls: 'burger-16x16'
, handler: function () {
var c= Ext.getCmp('column1')
c.items.items[0].add({
title: 'Task Completed',
draggable:true,
id:'tasks-complete',
collapsible:true,
frame:true,
html: 'portal add to column1'
});
c.doLayout();
}

koko2589
9 May 2009, 10:26 AM
:-/i want to add and it will add on top colum