Skip to main content

system.kanoa.config.populateMenu

This function requires KanoaCore module

Description

Build the navigation menu tree (kanoaCore).

Syntax

populateMenu(projectList, userRolesList)
  • Parameters
      projectList (List) - List of projects (e.g., ['kanoaCore', 'kanoaOPS']).
      userRolesList (List) - List of user roles.
  • Returns
      Navigation menu tree hierarchy.
  • Code Example

    # Example Usage:
    menuTree = system.kanoa.config.populateMenu(['kanoaCore', 'kanoaOPS'], ['Admin', 'User'])