52,797
社区成员
发帖
与我相关
我的任务
分享
Ext.GoupManage=Ext.extend(Ext.Window ,{
xtype:"window",
title:"分组管理",
width:356,
height:296,
layout:"form",
plain:true,
animCollapse:true,
initComponent: function(){
this.fbar=[
"->",
{
xtype:"textfield",
fieldLabel:"Label",
id:"txt_add"
},
{
text:"添加",
id:"btnAdd"
},
{
text:"关闭",
id:"btnClose"
}
]
this.items=[
{
xtype:"grid",
title:"已经存在的分类",
store:{
xtype:"jsonstore",
autoLoad:true,
storeId:"MyStore",
url:"/blog/ext_new_group",
sortDir:"ASC",
sortField:"name",
root:"Group",//数组对象
totalProperty:"Total",//数组总数
fields:[
{
name:"name",
type:"string",
mapping:"name"
},
{
name:"created_at",
type:"string",
mapping:"created_at"
}
]
},
height:220,
columns:[
{
header:"分组名称",
sortable:true,
resizable:true,
dataIndex:"name",
width:100
},
{
header:"创建日期",
sortable:true,
resizable:true,
dataIndex:"created_at",
width:200
}
]
}
]
Ext.GoupManage.superclass.initComponent.call(this);
}
})