system.kanoa.config.populateMenu
Description
Build the navigation menu tree (kanoaCore).Syntax
populateMenu(projectList, userRolesList)- projectList (List) - List of projects (e.g., ['kanoaCore', 'kanoaOPS']).
- userRolesList (List) - List of user roles.
- Navigation menu tree hierarchy.
Code Example
# Example Usage:
menuTree = system.kanoa.config.populateMenu(['kanoaCore', 'kanoaOPS'], ['Admin', 'User'])