{"title":
    "My Leave",
    "modulePath":"modules/leave/myLeave",
    
  "header":[
    {"type":
      "button",
      "label":"Apply",
      "formId":1,
      "class":"btn btn-primary"
    },
    
    {"type":"filter-select",
      "options":{
        "data_column":"status",
      
      "options":[
        {"label":"All",
        "value":""
        },
        
    {"label":"Pending",
      "value":"Pending"
    },
    
    {"label":"Approved",
      "value":"Approved"
    },
      
    {"label":"Rejected",
      "value":"Rejected"
    }
      ]
        }
          },
          
    {"type":
      "filter-date-range",
    
    "options":{
      "data_column":"startdate"
    }
      }
        ],
        
    "body":[
      {"type":
        "table",
        "id":"myLeaveRequestsTable",
        "options":{
          "tableName":"leave_requests",
          "scope":"user",
          "userField":"employee_id",

        "columnLabels":
          {"leavetype":
            "Type",
            "startdate":"Start Date",
            "enddate":"End Date",
            "reason":"Reason",
            "status":"Status"
          },
          
        "showGlobalSearch":false,
        "addButton":false,
        "rowClick":"selectRecord"
                }
                  }
                    ],
                    
          "footer":[
            {"type":
                "button",
                "label":"Close",
                "onClick":"closeModal"
            }
              ]
                }