@anguless/angulux/menu
Menu
import
import { MenuModule } from '@anguless/angulux/menu';API
Generated from the committed corpus, which check:corpus holds to the built library.
MenuItemContent
component[aglMenuItemContent]| Input | Type | Default | Description |
|---|---|---|---|
| agl property item | MenuItem | undefined | not documented | |
| item | any | undefined | not documented | |
| menuitem | string | not documented | |
| idx | number | not documented |
| Output | Type | Description |
|---|---|---|
| on | EventEmitter<any> |
Inherited from BaseComponent
inherited| Input | Type | Default | Description |
|---|---|---|---|
| dt | Object | undefined | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | undefined | Indicates whether the component should be rendered without styles. |
| pt | PT | 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. |
| pt | PassThroughOptions | undefined | undefined | Used to configure passthrough(pt) options of the component. |
Menu
componentagl-menuMenu 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. |
| style | string | undefined | not documented | Style class of the component. |
| auto | boolean | not documented | Whether to automatically manage layering. |
| base | number | not documented | Base zIndex value to use in layering. |
| show deprecated — since v21.0.0, use `motionOptions` instead. | string | not documented | Transition options of the show animation. |
| hide deprecated — since v21.0.0, use `motionOptions` instead. | string | not documented | Transition options of the hide animation. |
| aria | string | undefined | not documented | Defines a string value that labels an interactive element. |
| aria | 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. |
| append | 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). |
| motion | MotionOptions | undefined | not documented | The motion options. |
| Output | Type | Description |
|---|---|---|
| on | EventEmitter<any> | Callback to invoke when overlay menu is shown. |
| on | EventEmitter<any> | Callback to invoke when overlay menu is hidden. |
| on | EventEmitter<Event> | Callback to invoke when the list loses focus. |
| on | EventEmitter<Event> | Callback to invoke when the list receives focus. |
| Template slot | Description |
|---|---|
| <ng-template #start> | Defines template option for start. |
| <ng-template #end> | Defines template option for end. |
| <ng-template #item> | Custom item template. |
| <ng-template #submenuheader> | Custom submenu header template. |
Inherited from BaseComponent
inherited| Input | Type | Default | Description |
|---|---|---|---|
| dt | Object | undefined | undefined | Defines scoped design tokens of the component. |
| unstyled | boolean | undefined | undefined | Indicates whether the component should be rendered without styles. |
| pt | PT | 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. |
| pt | PassThroughOptions | undefined | undefined | Used to configure passthrough(pt) options of the component. |