SiNavbarVerticalComponent documentation¶
selector
si-navbar-vertical
Input Properties¶
Name | Type | Default | Description |
---|---|---|---|
collapsed ¶ | boolean | false | Whether the navbar-vertical is collapsed. |
items ¶ | (MenuItem | NavbarVerticalItem )[] | [] | List of vertical navigation items |
navbarCollapseButtonText ¶ | TranslatableString | $localize`:@@SI_NAVBAR_VERTICAL.COLLAPSE:Collapse` | Text for the navbar collapse button. Required for a11y |
navbarExpandButtonText ¶ | TranslatableString | $localize`:@@SI_NAVBAR_VERTICAL.EXPAND:Expand` | Text for the navbar expand button. Required for a11y |
searchable ¶ | boolean | false | Toggles search bar |
searchPlaceholder ¶ | TranslatableString | $localize`:@@SI_NAVBAR_VERTICAL.SEARCH_PLACEHOLDER:Search ...` | Placeholder text for search |
skipLinkMainContentLabel ¶ | TranslatableString | $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.MAIN_LABEL:Main content` | Label for the skip link to main content |
skipLinkNavigationLabel ¶ | TranslatableString | $localize`:@@SI_NAVBAR_VERTICAL.SKIP_LINK.NAVIGATION_LABEL:Navigation` | Label for the skip link to the vertical navbar |
stateId ¶ | string | An optional stateId to uniquely identify a component instance. Required for persistence of ui state. | |
textOnly ¶ | boolean | false | Set to true if there are no icons |
visible ¶ | boolean | true | Set to false to hide the vertical navbar |
autoCollapseDelay | number | undefined | Deprecated: dropped without replacement. |
Output Properties¶
Name | Type | Description |
---|---|---|
collapsedChange ¶ | boolean | Whether the navbar-vertical is collapsed. |
itemsChange ¶ | (MenuItem | NavbarVerticalItem )[] | List of vertical navigation items |
searchEvent ¶ | string | Output for search bar input |
Attributes and Methods¶
Name | Type | Default | Description |
---|---|---|---|
collapse() ¶ | () => void | Collapses the vertical navbar. | |
expand() ¶ | () => void | Expands the vertical navbar. |
Types Documentation¶
Union type for all possible all items in the navbar. |
---|
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. |
---|
Use this type to create a group that can hold multiple items. | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
Use this type to create a routerLink item. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Use this type to create an href link that will cause a real navigation. | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
AVOID USING THIS TYPE! Actions inside the navbar are an indication for a code smell. Use NavbarVerticalItemRouterLink instead whenever possible. | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
|
|
Translatable import imported from @siemens/element-translate-ng |
---|
Common properties shared among navbar item types. | ||||||
---|---|---|---|---|---|---|
|
Union type for all items that can be wrapped in a group. |
---|
Except where otherwise noted, content on this site is licensed under MIT License.