开发者

Config sample in EXTJS

I'm looking for sample code on how to u开发者_如何学编程se config in EXTJS. Can anyone help?

Thanks!


You can use config objects to stereotype repetitive bits in your code.

var configObject = {
   xtype : 'label',
   width : 50,
   text  : 'some Text'
}
//create a panel 
new Ext.Panel({
    id: 'someID',
    items: [
    configObject,
    {
       xtype: 'textfield'
    },
    configObject,
    {
      xtype: 'radio'<br>
    }
    ]
})

Or:

new Ext.form.Label(configObject);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜