使用spket的snippets加快ext開發:
常用模闆:
列布局
{layout:'column',items: [{columnWidth:.5,layout: 'form',items:[
]}
,{columnWidth:.5,layout: 'form',items:[
]}]}
fieldset
{xtype:"fieldset",title:"${标題}",collapsible:true,split:true,collapseMode:'mini',region:'north',anchor:'100%',lautoScroll:true,labelWidth:70,autoHeight:true,
items:[
]
}
彈出式警告
Ext.Msg.alert("提示", "${内容}!");
滑出式警告
Ext.example.msg('提示',${内容});
文本域
{xtype:'textfield',fieldLabel:'${标簽}',name:'${标簽名稱}',allowBlank:false,maxLength:${50},anchor:'100%'}
主表下拉框
,{xtype:'cboGrid',fieldLabel:'${标簽名稱}',name:'${表單名稱}',hiddenName:'${表單辨別名稱}',url:'${extlist方法位址}',gvalueField:'${值列名}',gdisplayField:'${顯示列名}',allowBlank:true,pageSize:10,editable:true,anchor:'90%'}
更新中....