Example #1
0
        private List <NavigationItemModel> GetNavigationItems()
        {
            NavigationBuilder nb = new NavigationBuilder();

            nb.AddItem("/", "Home", icon: BoschIcons.Home);

            //Base Config
            var mesLineConfig = nb.AddItem("base-config", "Base Config", unlinked: true);

            nb.AddItem("plant", "Plant", functionName: FunctionNames.Plant, parent: mesLineConfig);
            nb.AddItem("line", "Line", functionName: FunctionNames.Line, parent: mesLineConfig);
            nb.AddItem("route", "Route", functionName: FunctionNames.Route, parent: mesLineConfig);

            //Administration
            var adminstration = nb.AddItem("administration", "Administration", unlinked: true);

            nb.AddItem("user-management", "User Management", functionName: FunctionNames.UserManagement, parent: adminstration);
            nb.AddItem("role-management", "Role Management", functionName: FunctionNames.RoleManagement, parent: adminstration);
            nb.AddItem("access-control", "Access Control", functionName: FunctionNames.AccessControl, parent: adminstration);
            nb.AddItem("system-parameter", "System Parameter", functionName: FunctionNames.SystemParameter, parent: adminstration);

            return(nb.Items);
        }