foundation-header.navigation
Home > @genesislcap/foundation-header > Navigation
Navigation class
Navigation micro-frontend includes navigation bar and flyout menu
Signature:
export declare class Navigation extends Navigation_base
Extends: Navigation_base
Remarks
foundation-header micro-frontend can be added to the project to include a navigation bar and flyout menu. There are multiple ways that the behaviour of the component can be configured - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default). - navigation links at the left-hand side of the navigation bar. - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners - The contents of the flyout menu.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
AuthRouting | |||
|
Container | |||
|
boolean |
Boolean attribute which controls whether to enable inactivity monitoring Control via | ||
|
boolean |
Boolean attribute which controls whether to include the sideNav component Control via | ||
|
I18next | |||
|
number |
Number attribute which sets the inactivity timeout in minutes Control via | ||
|
number |
Number attribute which sets the inactivity warning time in minutes before timeout Control via | ||
|
Object which defines the language options to be displayed in the language selector | |||
|
LoginRouting | |||
|
string |
Optional attribute which controls the alt text of the logo Control via | ||
|
any |
Optional attribute which controls the icon to show on the navigation bar and flyout Control via | ||
|
'side-nav' | 'account-menu' | 'none' |
String attribute which controls the position of the logout button in the header Control via | ||
|
boolean | |||
|
Array<{ index: number; path: string; title: string; icon: string; variant: string; }> |
If present the defined route buttons will be rendered in the header 'routes' slot | ||
|
FoundationRouteNavItem[] |
If present the defined will be rendered in the header 'routes' slot | ||
|
|
boolean |
Computed property that determines if the account menu should be shown | |
|
boolean |
Boolean attribute which controls whether to show the account menu on the navigation bar Control via | ||
|
boolean |
Boolean attribute which controls whether to show the connection indicator on the navigation bar Control via | ||
|
boolean |
Boolean attribute which controls whether to show the environment indicator on the navigation bar Control via | ||
|
boolean |
Boolean attribute which controls whether to show the language selector on the navigation bar Control via | ||
|
boolean |
Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar Control via | ||
|
boolean |
Boolean attribute which controls whether to show the miscellaneous (menu) icon on the navigation bar Control via | ||
|
boolean |
Boolean attribute which controls whether to show the notification (bell) icon on the navigation bar Control via | ||
|
User | |||
|
string |
Username of the logged in user |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Changes the language of the application | ||
|
Called when the component is connected to the DOM | ||
|
Called when the component is disconnected from the DOM | ||
|
Handles the click event for a navigation button | ||
|
Check if any child nav item matches the current route | ||
|
Logs the user out of their session | ||
|
Changes the route of the current page | ||
|
Selects the appropriate template based on the component's state | ||
|
To localised text |