{ "keyColumn": "id", "wildsearch": "true", "detailHeaderColumnPrefix": "Leaves OffSet: ", "handleFile": "true", "detailHeaderColumns": [ "title" ], "breadCrumbColumn": "emp_id", "orderBy": { "id": "DESC" }, "listColumns": [ "emp_id", "cs_leave", "p_leave" ], "showColumns": [ "id", "emp_id", "cs_leave", "p_leave" ], "detailColumns": [ "id", "emp_id", "cs_leave", "p_leave" ], "columns": { "id": { "name": "ID", "editoptions": { "type": "hidden" } }, "emp_id": { "name": "USERNAME", "searchable": "true", "sortable": "true", "external": "true", "externalOptions": { "externalTable": "tbl_employee", "externalColumn": "emp_main_id", "externalShowColumn": "first_name" }, "editoptions": { "type": "select", "source": "Cmshelper::getUsernameCombo", "default": "", "source_type": "function", "label": "User name", "class": "select", "validations": [ "required" ] } }, "cs_leave": { "name": "Casual", "editoptions": { "type": "textbox", "label": "Casual", "class": "textbox" } }, "p_leave": { "name": "Privilege", "editoptions": { "type": "textbox", "label": "Privilege", "class": "textbox" } }, "c_frwd": { "name": "Carry", "editoptions": { "type": "textbox", "label": "Carry", "class": "textbox" } }, "spl_leave": { "name": "Special", "editoptions": { "type": "textbox", "label": "Special", "class": "textbox" } } }, "customActions": { "afterAddRecord": "Cmshelper::checkLeaveOffset", "beforeAddRecord": "Cmshelper::beforeAddLeaveOffset", "beforeDeleteRecord": "Cmshelper::beforeDeleteOffset" }, "opertations": [ "add", "view", "delete" ], "operationLabel": { "addLabel": "Add Offset", "viewTitle": "View Offset Details", "deleteTitle": "Delete Offset" } }