@anguless/angulux/overlay
Overlay
import
import { OverlayModule } from '@anguless/angulux/overlay';Basic
Overlay is the positioning primitive that select, popover and the menus are built on.
<agl-button label="Toggle" (onClick)="visible.set(!visible())" /><agl-overlay [visible]="visible()" (visibleChange)="visible.set($event)" [style]="{ padding: '1rem', minWidth: '16rem' }"> <p style="margin: 0">Overlay is the positioning primitive the select, popover and menu overlays are built on.</p></agl-overlay>API
Generated from the committed corpus, which check:corpus holds to the built library.
Overlay
componentagl-overlayThis API allows overlay components to be controlled from the AnguluxConfig. In this way, all overlay components in the application can have the same behavior.
| Input | Type | Default | Description |
|---|---|---|---|
| host | string | not documented | |
| visible | boolean | false | The visible property is an input that determines the visibility of the component. |
| mode | OverlayModeType | string | null | The mode property is an input that determines the overlay mode type or string. |
| style | { [klass: string]: any } | null | undefined | null | The style property is an input that determines the style object for the component. |
| style | string | null | The styleClass property is an input that determines the CSS class(es) for the component. |
| content | { [klass: string]: any } | null | undefined | null | The contentStyle property is an input that determines the style object for the content of the component. |
| content | string | null | The contentStyleClass property is an input that determines the CSS class(es) for the content of the component. |
| target | string | null | undefined | null | The target property is an input that specifies the target element or selector for the component. |
| auto | boolean | false | The autoZIndex determines whether to automatically manage layering. Its default value is 'false'. |
| base | number | null | The baseZIndex is base zIndex value to use in layering. |
| show deprecated — since v21.0.0. Use `motionOptions` instead. | string | .12s cubic-bezier(0, 0, 0.2, 1) | Transition options of the show or hide animation. |
| hide deprecated — since v21.0.0. Use `motionOptions` instead. | string | .1s linear | The hideTransitionOptions property is an input that determines the CSS transition options for hiding the component. |
| listener | any | null | The listener property is an input that specifies the listener object for the component. |
| responsive | ResponsiveOverlayOptions | undefined | null | It is the option used to determine in which mode it should appear according to the given media or breakpoint. |
| options | OverlayOptions | undefined | null | The options property is an input that specifies the overlay options for the component. |
| 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). |
| inline | boolean | false | Specifies whether the overlay should be rendered inline within the current component's template. |
| motion | MotionOptions | undefined | not documented | The motion options. |
| host | string | not documented |
| Output | Type | Description |
|---|---|---|
| visible | EventEmitter<boolean> | This EventEmitter is used to notify changes in the visibility state of a component. |
| on | EventEmitter<OverlayOnBeforeShowEvent> | Callback to invoke before the overlay is shown. |
| on | EventEmitter<OverlayOnShowEvent> | Callback to invoke when the overlay is shown. |
| on | EventEmitter<OverlayOnBeforeHideEvent> | Callback to invoke before the overlay is hidden. |
| on | EventEmitter<OverlayOnHideEvent> | Callback to invoke when the overlay is hidden |
| on | EventEmitter<AnimationEvent> | Callback to invoke when the animation is started. |
| on | EventEmitter<AnimationEvent> | Callback to invoke when the animation is done. |
| on | EventEmitter<MotionEvent> | Callback to invoke before the overlay enters. |
| on | EventEmitter<MotionEvent> | Callback to invoke when the overlay enters. |
| on | EventEmitter<MotionEvent> | Callback to invoke after the overlay has entered. |
| on | EventEmitter<MotionEvent> | Callback to invoke before the overlay leaves. |
| on | EventEmitter<MotionEvent> | Callback to invoke when the overlay leaves. |
| on | EventEmitter<MotionEvent> | Callback to invoke after the overlay has left. |
| Template slot | Description |
|---|---|
| <ng-template #content> | Content template of the component. |
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. |