# tieredmenu

```ts
import { TieredMenuModule } from '@anguless/angulux/tieredmenu';
```

## TieredMenuSub

`agl-tieredMenuSub, agl-tieredmenusub` — component

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `visible` | `boolean` | _not documented_ |  |
| `items` | `any[]` | _not documented_ |  |
| `itemTemplate` | `TemplateRef<TieredMenuItemTemplateContext> \| undefined` | _not documented_ |  |
| `root` | `boolean \| undefined` | _not documented_ |  |
| `autoDisplay` | `boolean \| undefined` | _not documented_ |  |
| `autoZIndex` | `boolean` | _not documented_ |  |
| `baseZIndex` | `number` | _not documented_ |  |
| `popup` | `boolean \| undefined` | _not documented_ |  |
| `menuId` | `string \| undefined` | _not documented_ |  |
| `ariaLabel` | `string \| undefined` | _not documented_ |  |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ |  |
| `level` | `number` | _not documented_ |  |
| `focusedItemId` | `string \| undefined` | _not documented_ |  |
| `activeItemPath` | `any[]` | _not documented_ |  |
| `motionOptions` | `MotionOptions[] \| undefined` | _not documented_ |  |
| `tabindex` | `number` | _not documented_ |  |
| `inlineStyles` | `{ [klass: string]: any } \| null \| undefined` | _not documented_ |  |

| Output | Type | Description |
| --- | --- | --- |
| `itemClick` | `EventEmitter<any>` |  |
| `itemMouseEnter` | `EventEmitter<any>` |  |
| `menuFocus` | `EventEmitter<any>` |  |
| `menuBlur` | `EventEmitter<any>` |  |
| `menuKeydown` | `EventEmitter<any>` |  |

## TieredMenu

`agl-tieredMenu, agl-tieredmenu, agl-tiered-menu` — component

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

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.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `model` | `` | _not documented_ | An array of menuitems. |
| `popup` | `boolean \| undefined` | _not documented_ | Defines if menu would displayed as a popup. |
| `style` | `{ [klass: string]: any } \| null \| undefined` | _not documented_ | Inline style of the component. |
| `styleClass` | `string \| undefined` | _not documented_ | Style class of the component. |
| `breakpoint` | `string` | _not documented_ | The breakpoint to define the maximum width boundary. |
| `autoZIndex` | `boolean` | _not documented_ | Whether to automatically manage layering. |
| `baseZIndex` | `number` | _not documented_ | Base zIndex value to use in layering. |
| `autoDisplay` | `boolean \| undefined` | `true` | Whether to show a root submenu on mouse over. |
| `showTransitionOptions` | `string` | _not documented_ | Transition options of the show animation. **Deprecated:** since v21.0.0, use `motionOptions` instead. |
| `hideTransitionOptions` | `string` | _not documented_ | Transition options of the hide animation. **Deprecated:** since v21.0.0, use `motionOptions` instead. |
| `id` | `string \| undefined` | _not documented_ | Current id state as a string. |
| `ariaLabel` | `string \| undefined` | _not documented_ | Defines a string value that labels an interactive element. |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ | Identifier of the underlying input element. |
| `disabled` | `boolean` | _not documented_ | When present, it specifies that the component should be disabled. |
| `tabindex` | `number` | _not documented_ | Index of the element in tabbing order. |
| `appendTo` | `HTMLElement \| 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). |
| `motionOptions` | `MotionOptions \| undefined` | _not documented_ | The motion options. |

| Output | Type | Description |
| --- | --- | --- |
| `onShow` | `EventEmitter<any>` | Callback to invoke when overlay menu is shown. |
| `onHide` | `EventEmitter<any>` | Callback to invoke when overlay menu is hidden. |

| Slot | Read as | Description |
| --- | --- | --- |
| `<ng-template #submenuicon>` | `submenuIconTemplate` | Custom submenu icon template. |
| `<ng-template #item>` | `itemTemplate` | Custom item template. |
