app-layout/src/app-frame/app-frame.component.ts
Provides the global app layout. Is typically placed at the root of your app's component tree.
The template uses three template slots
[default] – Projects child elements of <talenra-app-frame> except for children using one of the following
attributes. Typically the only element you want to be projected in the default template slot is <router-outlet>.
appHeader - The element with the appHeader attribute is projected in the slot in the upper-right corner of
the app's header. This slot is typically used for buttons like "apps", "user-settings" etc. Expects a single
element. Example: <div appHeader>
appHeaderDrawer - Elements with the appHeaderDrawer attribute are expected to be instances of
<talenra-header-drawer> component and are projected in the global "App Header Drawer". Check the component's docs for
details. Example: <talenra-header-drawer appHeaderDrawer […] >
import { AppFrameComponent } from '@talenra/components/app-layout';
| host | { |
| selector | talenra-app-frame |
| imports |
AppHeaderComponent
AppSidenavComponent
AppFooterComponent
AsyncPipe
|
| styleUrls | ./app-frame.component.scss |
| templateUrl | ./app-frame.component.html |
Inputs |
Outputs |
| appDisplayName |
Type : string
|
Default value : ''
|
|
Name of the app as displayed in the header. If the app name is associated with a logotype, this logotype is rendered and the display name is shortened accordingly (e.g. "Opus Fall-Manager" is rendered as "[Opus Logotype] Fall-Manager") Example : |
| appEnv |
Type : SupportedEnvironment
|
Default value : SupportedEnvironment.PROD
|
|
Code for the current environment (e.g. 'AIT', 'DEV', 'EDU', 'SIT', 'PROD'). Displayed in the app's footer. Example : |
| appLang |
Type : string
|
Default value : ''
|
|
Code for the current language (e.g. 'de', 'fr', 'it'). Displayed in the app's footer. Example : |
| appName |
Type : string
|
Default value : ''
|
|
Name of the app (e.g. "SoHi"). Note that while most app names are displayed as plain text while other names might be represented as logotype (e.g. "talenra"). Example : |
| appVersion |
Type : string
|
Default value : ''
|
|
Version of the app (e.g. 'AB123' or '1.2.3') Example : |
| issuerName |
Type : string
|
Default value : ''
|
|
Name of the issuer of the app (e.g. "SVA Zürich") Example : |
| sidenavBottomItems |
Type : SidenavItem[]
|
Default value : []
|
|
Items displayed in the footer section of the side-navigation. Typically used for things like settings. Example :see SidenavItem |
| sidenavItems |
Type : SidenavItem[]
|
Default value : []
|
|
Items displayed in the main section of the side-navigation. Supports two-way binding. Example :see SidenavItem |
| sidenavItemExpandedChange |
Type : SidenavItem
|
|
Event emitted when a sidenavItem is toggled (property |
| sidenavItems |
Type : SidenavItem[]
|
|
Items displayed in the main section of the side-navigation. Supports two-way binding. Example :see SidenavItem |
| sidenavItemsChange |
Type : SidenavItem[]
|
|
Event emitted when value of |