extjs - Data within Ext.Panel without XTemplate? -


is there way apply data "regular" fields , subitems without using xtemplate?

my code looks like:

var panel = new ext.panel({    data: mydatablock    defaults: {       data: mydatablock    }    title: 'name: {name}'    items: [{        xtype: 'panel',        title: 'more: {moredata}'    }] }); 

what required have proper substitudes data form "mydatablock" ?

cheers

what mean "regular" fields?

the data property of panel initial data want rendered, , gets rendered using template. can specify custom template rendering if wish, either way has use template extjs knows how render content.

look @ source code component:

if (this.data) {     this.tpl[this.tplwritemode](contenttarget, this.data);     delete this.data; } 

data: initial set of data apply tpl update content area of component.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -