UNPKG

@omnia/fx-models

Version:
45 lines (44 loc) 1.17 kB
import { IIcon } from '../Icon'; import { AdminNavigationBuiltInCategory } from '../Enums'; import { BladeSizes } from '../../ux'; export interface NavigationNode { /** * The key of the navigation node */ key?: string; /** * The title of the navigation node */ title: string; /** * The element that will be rendered when selected */ elementToRender: string; /** * The icon */ icon: IIcon; /** * This influence the order of the navigation nodes, be nice, use ordering with gap -100, 0, 100, 200 So other extensions etc can inject between */ weight: number; /** * The category that the navigation node belongs to */ category: string | AdminNavigationBuiltInCategory; /** * Tooltip to show when hover on element */ tooltip?: string; /** * SecurityRole to show or hide element in Omnia Admin, input the role id */ securityRole?: string; } export interface BladeMenuNavigationNode extends NavigationNode { /** * The size of the blade * */ bladeSize: BladeSizes; }