PDA

View Full Version : add Item in Drag & Drop



hidabe
12 Apr 2009, 1:16 PM
Hi,

I have drag & drop (like extjs' portal sample):


...
xtype:'portal',
width: '50%',
region:'center',
split:true,
collapsible: true,
id:'bsb_op_battle',
items:[{
id: 'bsb_op_col1',
columnWidth:.25,
style:'padding:10px 0 10px 10px',
},{
...


xtype portal is defined and etc...

Ok, it work,

Now i want add one element to Drag & Drop Panel, i am try:


item_new = ({
title: 'Panel 2',
tools: tools,
html: Ext.example.shortBogusMarkup
});

bsb_op_col1.add(item_new);
bsb_op_col1.doLayout();


I know that bsb_op_col1.add and bsb_op_col1.doLayout() work, but, i dont know so to do item_new :S

Very thanks, regards!