Skip to content
angulux
@anguless/angulux/tieredmenu

TieredMenu

2 declarations2 demostieredmenu.md
import
import { TieredMenuModule } from '@anguless/angulux/tieredmenu';

Basic

TieredMenu is Menu with submenus that open on their own.

<agl-tieredMenu [model]="items" />

Popup

The same menu, opened from a trigger instead of sitting inline.

<agl-button label="Show" icon="pi pi-bars" (onClick)="menu.toggle($event)" /><agl-tieredMenu #menu [model]="items" [popup]="true" />

API

Generated from the committed corpus, which check:corpus holds to the built library.

TieredMenuSub

componentagl-tieredMenuSub, agl-tieredmenusub
InputTypeDefaultDescription
visiblebooleannot documented
itemsany[]not documented
itemTemplateTemplateRef<TieredMenuItemTemplateContext> | undefinednot documented
rootboolean | undefinednot documented
autoDisplayboolean | undefinednot documented
autoZIndexbooleannot documented
baseZIndexnumbernot documented
popupboolean | undefinednot documented
menuIdstring | undefinednot documented
ariaLabelstring | undefinednot documented
ariaLabelledBystring | undefinednot documented
levelnumbernot documented
focusedItemIdstring | undefinednot documented
activeItemPathany[]not documented
motionOptionsMotionOptions[] | undefinednot documented
tabindexnumbernot documented
inlineStyles{ [klass: string]: any } | null | undefinednot documented
OutputTypeDescription
itemClickEventEmitter<any>
itemMouseEnterEventEmitter<any>
menuFocusEventEmitter<any>
menuBlurEventEmitter<any>
menuKeydownEventEmitter<any>

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TieredMenu

componentagl-tieredMenu, agl-tieredmenu, agl-tiered-menu

TieredMenu displays submenus in nested overlays. Accessibility, a known limit: while a submenu is open, its list sits inside the item that opened it, so the item's name (its label) is only part of the text the item contains. axe reports this as label-content-name-mismatch. A screen reader still announces the item by its label, and the arrow keys move into the submenu and back. Moving the submenu out of the item would change the menu's DOM, which styles and pass-through options depend on, so it waits for the next major version.

InputTypeDefaultDescription
modelnot documentedAn array of menuitems.
popupboolean | undefinednot documentedDefines if menu would displayed as a popup.
style{ [klass: string]: any } | null | undefinednot documentedInline style of the component.
styleClassstring | undefinednot documentedStyle class of the component.
breakpointstringnot documentedThe breakpoint to define the maximum width boundary.
autoZIndexbooleannot documentedWhether to automatically manage layering.
baseZIndexnumbernot documentedBase zIndex value to use in layering.
autoDisplayboolean | undefined true Whether to show a root submenu on mouse over.
showTransitionOptions
deprecated — since v21.0.0, use `motionOptions` instead.
stringnot documentedTransition options of the show animation.
hideTransitionOptions
deprecated — since v21.0.0, use `motionOptions` instead.
stringnot documentedTransition options of the hide animation.
idstring | undefinednot documentedCurrent id state as a string.
ariaLabelstring | undefinednot documentedDefines a string value that labels an interactive element.
ariaLabelledBystring | undefinednot documentedIdentifier of the underlying input element.
disabledbooleannot documentedWhen present, it specifies that the component should be disabled.
tabindexnumbernot documentedIndex of the element in tabbing order.
appendToHTMLElement | ElementRef | TemplateRef<any> | 'self' | 'body' | null | undefined | any 'self' Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
motionOptionsMotionOptions | undefinednot documentedThe motion options.
OutputTypeDescription
onShowEventEmitter<any>Callback to invoke when overlay menu is shown.
onHideEventEmitter<any>Callback to invoke when overlay menu is hidden.
Template slotDescription
<ng-template #submenuicon>Custom submenu icon template.
<ng-template #item>Custom item template.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.