Namespace: macarte

charte. macarte

Special charte instance for Macarte. Set Macarte menus and handle login/logout.

Source:
charte/macarte.js

Methods


setApp(id, name [, roles])

Add default menu for MonMaMes

Parameters:
Name Type Argument Description
id string

App id

name string

App name (shown in the header)

roles string | Array.<string> <optional>

a list of roles to limit the page view

Source:
charte/macarte.js
Example
import charte from 'mcutils/charte/macarte'
// Create an app with a title
charte.setApp('macarte', 'Ma carte');