{
    "keyColumn": "id",
    "wildsearch": "true",
    "detailHeaderColumnPrefix": "Holidays: ",
    "handleFile": "true",
    "detailHeaderColumns": [
        "title"
    ],
    "breadCrumbColumn": "title",
    "orderBy": {
        "id": "DESC"
    },
    "listColumns": [
        "title",
        "date",
	    "group_ids",
         "rh",
        "active"
    ],
    "showColumns": [
        "id",
        "title",
        "description",
        "date",
	    "group_ids",
        "rh",
        "active"
    ],
    "detailColumns": [
        "id",
        "title",
        "description",
        "date",
	    "group_ids",
       "rh",
        "active"
    ],
    "columns": {
        "id": {
            "name": "ID",
            "editoptions": {
                "type": "hidden"
            }
        },
        "title": {
            "name": "Title",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textbox",
                "label": "Title",
                "class": "textbox",
                "hint": "Holiday Title",
                "validations": [
                    "required"
                ]
            }
        },
        "description": {
            "name": "Description",
            "editoptions": {
                "type": "textarea",
                "label": "Description",
                "class": "textarea",
                "validations": [
                    "required"
                ]
            }
        },
        "date": {
            "name": "Date",
            "dbFormat": "date",
            "displayFormat": "M d, Y",
            "editoptions": {
                "dbFormat": "date",
                "displayFormat": "M d, Y",
                "type": "datepicker",
                "label": "Date",
                "class": "",
                "validations": [
                    "required"
                ]
            }
        },
		  "group_ids": {
            "name": "Allowable Groups",         
            "customColumn": "true",
            "customaction": "Cmshelper::getGroupsString",
            "editoptions": {
                "type": "tags",
                "tagDetails": {
                    "autocompleteSource": "Cmshelper::ajaxAutoSuggest",
                    "autocompleteMinChars": "1",
                    "placeholder": "",
                    "prePopulateSource": "Cmshelper::fetchAutosuggestGroups"
                },
                "hint": "Allowable Groups",
                "label": "Allowable Groups",
                "class": "textbox"
            }
        },
   "rh": {
        "name": "Restricted Holiday",
        "sortable": "true",
        "editoptions": { 
        "type": "checkbox", 
        "label": "Restricted Holiday",
        "class": "inline",
        "default": "0",
        "enumvalues": { "0": "No", "1": "Yes" }
      }
    },

        "active": {
            "name": "Status",
            "searchable": "true",
            "sortable": "true",
            "listoptions": {
                "type": "button",
                "customaction": "Cmshelper::changeHolidaysStatus",
                "enumvalues": {
                    "Y": "Active",
                    "N": "Inactive"
                },
                "buttonColors": {
                    "Y": "green",
                    "N": "red"
                }
            },
            "editoptions": {
                "type": "select",
                "source": {
                    "Y": "Active",
                    "N": "Inactive"
                },
                "default": "Y",
                "source_type": "array",
                "label": "Status",
                "class": "select",
                "enumvalues": {
                    "Y": "Active",
                    "N": "Inactive"
                },
                "validations": [
                    "required"
                ]
            }
        }
    },
    "opertations": [
        "add",
        "view",
        "edit",
        "delete"
    ],
    "operationLabel": {
        "addLabel": "Add Holiday",
        "editTitle": "Edit Holiday",
        "viewTitle": "View Holiday Details",
        "deleteTitle": "Delete Holiday"
    }
}