jetstream-inertia-generator icon indicating copy to clipboard operation
jetstream-inertia-generator copied to clipboard

Submenu - no proper documentation or example available

Open abhitheawesomecoder opened this issue 3 years ago • 1 comments

Sub menu not working for me there is also not much documentation or example for that

I tried this :

"categories": { "route": "admin.categories.index", "title": "Categories", "routePattern": "admin.categories.", "faIcon": "far fa-clone", "isTitle": true, "isParent": true, "children": [{"sub-categories": { "route": "admin.sub-categories.index", "title": "Sub Categories", "routePattern": "admin.categories.", "faIcon": "far fa-clone", "isTitle": false, "isParent": false, "children": [] }}] },

abhitheawesomecoder avatar Mar 04 '22 10:03 abhitheawesomecoder

Children should be defined as object not array:

"stats": {
        "title": "Statystyka",
        "faIcon": "fas fa-database",
        "isTitle": true,
        "isParent": true,
        "ignorePerm": false,
        "children": {
            "default": {
                "route": "stat",
                "title": "Statystyka ",
                "routePattern": "stat",
                "faIcon": "fa-solid fa-square-poll-horizontal",
                "isTitle": false,
                "isParent": true,
                "ignorePerm": true,
                "children": {}
            },
            "filter-reports": {
                "route": "reports.search",
                "title": "Filtruj raporty",
                "routePattern": "reports.search",
                "faIcon": "fas fa-table",
                "isTitle": false,
                "isParent": true,
                "ignorePerm": true,
                "children": {}
            },
            "reports-result": {
                "route": "reports.result",
                "title": "Wynik",
                "routePattern": "reports.result",
                "faIcon": "fas fa-table ml-4",
                "isTitle": false,
                "isParent": false,
                "ignorePerm": true,
                "visible": "showReportsResults",
                "children": {}
            },
            "filter-stats": {
                "route": "stats.search",
                "title": "Filtruj dane",
                "routePattern": "stats.search",
                "faIcon": "fas fa-chart-bar",
                "isTitle": false,
                "isParent": true,
                "ignorePerm": true,
                "children": {}
            },
            "stats-result": {
                "route": "stats.result",
                "title": " Wynik",
                "routePattern": "stats.result",
                "faIcon": "fas fa-chart-bar ml-4",
                "isTitle": false,
                "isParent": false,
                "ignorePerm": true,
                "visible": "showStatsResults",
                "children": {}
            }
        }
    },

asbator avatar May 26 '22 07:05 asbator