PDA

View Full Version : Dynamically add Items to Panel



firstthumb
12 Jul 2010, 12:39 AM
I want to add elements to Panel dynamically.

For example, I have the code below


var p = new Ext.Panel({
title: '',
width:600,
items: myActionClass.getItems
});

myActionClass is a Java based DWR Proxy Class and returns items as JSON. How can I add items dynamically like this?

Animal
12 Jul 2010, 1:02 AM
add items? Take a look in the API docs and see if there's a method you could use ;)