# menu

```ts
import { MenuModule } from '@anguless/angulux/menu';
```

## MenuItemContent

`[aglMenuItemContent]` — component

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

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `aglMenuItemContent` | `MenuItem \| undefined` | _not documented_ |  _(property `item`)_ |
| `itemTemplate` | `any \| undefined` | _not documented_ |  |
| `menuitemId` | `string` | _not documented_ |  |
| `idx` | `number` | _not documented_ |  |

| Output | Type | Description |
| --- | --- | --- |
| `onMenuItemClick` | `EventEmitter<any>` |  |

## Menu

`agl-menu` — component

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

Menu is a navigation / command component that supports dynamic and static positioning.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `model` | `MenuItem[] \| undefined` | _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. |
| `autoZIndex` | `boolean` | _not documented_ | Whether to automatically manage layering. |
| `baseZIndex` | `number` | _not documented_ | Base zIndex value to use in layering. |
| `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. |
| `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. |
| `id` | `string \| undefined` | _not documented_ | Current id state as a string. |
| `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. |
| `onBlur` | `EventEmitter<Event>` | Callback to invoke when the list loses focus. |
| `onFocus` | `EventEmitter<Event>` | Callback to invoke when the list receives focus. |

| Slot | Read as | Description |
| --- | --- | --- |
| `<ng-template #start>` | `startTemplate` | Defines template option for start. |
| `<ng-template #end>` | `endTemplate` | Defines template option for end. |
| `<ng-template #item>` | `itemTemplate` | Custom item template. |
| `<ng-template #submenuheader>` | `submenuHeaderTemplate` | Custom submenu header template. |
