{
    "keyColumn": "menus_id",
    "wildsearch": "true",    "detailHeaderColumnPrefix": "Menus: ",
    "detailHeaderColumns": [
        "title"
    ],
    "breadCrumbColumn": "title",
    "orderBy": {
        "menus_id": "DESC"
    },
    "listColumns": [
  "menus_id",
        "title",
        "position",
        "menu_type",       
        "enabled"
    ],
    "showColumns": [
        "title",
        "position",
        "menu_type",
        "menu_class",
        "enabled"
    ],
    "detailColumns": [        
        "menus_id",
        "title",
        "position",
        "menu_type",
        "menu_class",
        "enabled"
    ],
    "columns": {
            "menus_id": {
                "name": "ID",
                "editoptions": {
                    "type": "hidden"
                }
            },
            "title": {
            "name": "Title",
            "searchable": "true",
            "sortable": "true",
            "editoptions": {
                "type": "textbox",
                "label": "Title",
                "class": "textbox",
                "hint": "Title of the menu",
                "validations": [
                    "required"
                ]
                }
            },
            "position": {
                "name": "Position",
                "searchable": "true",
                "sortable": "true",
                "editoptions": {
                    "type": "textbox",
                    "label": "Position",
                    "class": "textbox"
                }
            },
            "menu_type": {
                "name": "Menu Type",
                "searchable": "true",
                "sortable": "true",
                "editoptions": {
                    "type": "select",
                     "default":"Text",
                    "source": {
                        "Image": "Image",
                        "Text": "Text",
                        "Both": "Both"
                    },
                    "source_type": "array",
                    "label": "Menu Type",
                    "class": "select",
                    "enumvalues": {
                        "Image": "Image",
                        "Text": "Text",
                        "Both": "Both"
                    },  "validations": [
                    "required"
                ]
                }
            },
            "menu_class": {
                "name": "Menu Class",
                "searchable": "true",
                "sortable": "true",
                "editoptions": {
                    "type": "textbox",
                    "label": "Menu Class",
                    "class": "textbox",
                    "hint": "css class of the menu element"
                }
            },
            "enabled": {
                "name": "Status",
                "searchable": "true",
                "sortable": "true",
                "listoptions": {
                    "type": "button",
                    "customaction": "Cmshelper::changeMenuStatus",
                    "enumvalues": {
                        "Y": "Enabled",
                        "N": "Disabled"
                    },
                    "buttonColors": {
                        "Y": "green",
                        "N": "red"
                    }
                },
                "editoptions": {
                    "type": "select",
                    "source": {
                        "Y": "Enabled",
                        "N": "Disabled"
                    },
                   "default":"Y",
                    "source_type": "array",
                    "label": "status",
                    "class": "select",
                    "enumvalues": {
                        "Y": "Enabled",
                        "N": "Disabled"
                    },
  "validations": [
                    "required"
                ]
                }
            }
    },
    "relations": {
        "Menu Items": {
            "name": "Menu Items",
            "section": "menu_items",
            "child_table": "cms_menu_items",
            "parent_join_column": "menus_id",
            "child_join_column": "menus_id"
        }
     },
        "opertations": [
            "add",
            "view",
            "edit",
            "delete"
        ],
"operationLabel": {
           "addLabel": "Add Menu",
           "editTitle": "Edit Menu",
            "viewTitle": "View Menu Details",
             "deleteTitle": "Delete Menu"
              }
    }
    
    