SiNavbarPrimaryComponent documentation¶
selector
si-navbar-primary
Deprecated: Use the new si-application-header
instead.
Input Properties¶
Name | Type | Default | Description |
---|---|---|---|
account ¶ | AccountItem | Account settings name ( title ) and profile picture ( image or icon ) | |
accountItems ¶ | MenuItem [] | List of account dropdown elements (defined by title and link ).The menu item can have submenu items (supplying items : MenuItem[]). Submenu items can be divided into groups by separators. A separator is an item with only '-' set as title .Alternatively, you can can create a custom content by putting your html code between the tags. In this case you don't need this property (will be ignored if you set anyway). | |
allAppsLink ¶ | MenuItem | "all apps" link in the launchpad | |
appCategoryItems ¶ | AppItemCategory [] | Like appItems but with the addition of categories. If this is set, appItems is ignored. | |
appItems ¶ | AppItem [] | All app items shown in the launchpad. The launchpad will not be visible if the app items are undefined. The launchpad will be visible if the app items are an empty array. | |
appItemsFavorites ¶ | boolean | false | Allow the user to favorite apps which will then be displayed at the top. |
appSwitcherSubTitle ¶ | TranslatableString | $localize`:@@SI_LAUNCHPAD.SUB_TITLE:Access all your apps` | sub-title for the launchpad |
appSwitcherTitle ¶ | TranslatableString | $localize`:@@SI_LAUNCHPAD.TITLE:Launchpad` | title for the launchpad |
appTitle ¶ | string | Title of the application. | |
ariaLabelMainMenu ¶ | string | 'Header main' | Aria label for the main menu landmark |
ariaLabelSecondaryMenu ¶ | string | 'Header secondary' | Aria label for the secondary menu landmark |
closeAppSwitcherText ¶ | TranslatableString | $localize`:@@SI_LAUNCHPAD.CLOSE:Close launchpad` | Text to close the launchpad. Needed for a11y. |
defaultAppsTitle ¶ | TranslatableString | $localize`:@@SI_LAUNCHPAD.DEFAULT_CATEGORY_TITLE:Apps` | Title or translate key for the default apps section. |
favoriteAppsTitle ¶ | TranslatableString | $localize`:@@SI_LAUNCHPAD.FAVORITE_APPS:Favorite apps` | Title or translate key for the favorite apps section. |
focusOnLoad ¶ | boolean | false | Specifies whether the component should automatically be focused as soon as it is loaded. |
home ¶ | (undefined | Link ) | { link: '/' } | Configurable home link that is used at the logo and app title. Use undefined to disable the link. |
logoUrl ¶ | string | URL of the navbar brand. | |
navAriaLabel ¶ | string | 'Primary' | Marks the navbar as primary navigation element. Needed for a11y (screen reader). Only one element should be primary. If multiple navbars are used, it's up to the user of the components to label them in the correct order. |
openAppSwitcherText ¶ | TranslatableString | $localize`:@@SI_NAVBAR.OPEN_LAUNCHPAD:Open launchpad` | Text for the launchpad icon. Needed for a11y. |
primaryItems ¶ | MenuItem [] | [] | List of navbar items which should be displayed at the left (in LTR) side next to the banner. |
showLessAppsTitle ¶ | TranslatableString | $localize`:@@SI_LAUNCHPAD.SHOW_LESS:Show less` | Title or translate key for the show less apps button. |
showMoreAppsTitle ¶ | TranslatableString | $localize`:@@SI_LAUNCHPAD.SHOW_MORE:Show more` | Title or translate key for the show more apps button. |
toggleNavigationText ¶ | TranslatableString | $localize`:@@SI_NAVBAR.TOGGLE_NAVIGATION:Toggle navigation` | Text or translate key for the toggle navigation icon. Needed for a11y. |
Output Properties¶
Name | Type | Description |
---|---|---|
appItemFavoriteChanged ¶ | [ AppItem , boolean ] |
Types Documentation¶
Deprecated: Use the new si-application-header instead. | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The AppItemCategory is used to show app categories in the launchpad. Deprecated: Use the new si-application-header instead. | |||
---|---|---|---|
|
The AppItem is used to show apps in the launchpad. Deprecated: Use the new si-application-header instead. | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality. |
---|
|
Translatable import imported from @siemens/element-translate-ng |
---|
Except where otherwise noted, content on this site is licensed under MIT License.