1. 程式人生 > >平臺開發組件初始化

平臺開發組件初始化

text tex 加載 toolbar set handle cls and student

列表組件的初始化

toList:去列表的處理器

listMeta:獲取元數據的處理器

listLoad:加載列表數據的處理器

listDelete

listSave

listNew

基本的列表初始化過程

jqList.list({
meta : waf.getListMeta("s_student"),

//frozenColumns: [ [{...}, {...}] ],
columns : [ [ {
field : "stid"
}, {
field : "name"
}, {
field : "age"
}, {
field : "sex"
}, {
field : "address"
}, {
field : "phone"
}, {
field : "regtime"
}, {
field : "edulevel"
}, {
field : "schooltag"
}, {
field : "note"
} ] ],

toolbar : [ {
text : "新增",
iconCls : "icon-add",
handler : function() {
jqList.list("listNew");
}
}, {
text : "保存",
iconCls : "icon-save",
handler : function() {
jqList.list("listSave");
}
}, {

text : "刪除",
iconCls : "icon-delete",
handler : function() {
jqList.list("listDelete");
}
}, "-", {
text : "導出",
iconCls : "icon-export",
handler : function() {
jqList.list("listExport");
}
}, "-", {
text : "重置查詢項",
iconCls : "icon-redo",
handler : function() {
jqList.list("queryReset");
}
}, {
text : "執行查詢",
iconCls : "icon-search",
handler : function() {
jqList.list("query");
}
} ],

onCreate : function() {
//jqList.list("query");
}
});

平臺開發組件初始化