Open sidebar
how to export all of these to be included in another es6 module and how to import them into another file emp.js ----------------------------------------------------------------- $("#list").jqGrid({ url: "employeeListDataAll", datatype: "json", mtype: "GET", colNames: ["id", "Employee ID", "Last Name" ], colModel: [ { name: "id", width: 50, hidden: true }, { name: "emp_id", width: 130 }, { name: "e_lname", width: 110 } ], ondblClickRow: function(rowid) { goToEmployee(); } }); function goToEmployee() { ActivateTab("emp"); } $("#list") .jqGrid('navGrid',"#pager",{edit:false,add:false,del:false}) .jqGrid('filterToolbar',{defaultSearch:'cn'}); setTimeout(function(){ // resort grid $('#list').jqGrid('setGridParam', {sortname: 'e_lname', sortorder: 'asc'}).trigger('reloadGrid', [{page: 1}]); }, 1500);
Close sidebar
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting