@anguless/angulux/popover
Popover
import
import { PopoverModule } from '@anguless/angulux/popover';Basic
A popover is anchored to whatever opened it and dismissed by clicking away.
<agl-button label="Show" (onClick)="op.toggle($event)" /><agl-popover #op> <p style="margin: 0; max-width: 18rem">A popover is anchored to whatever opened it, and closes when you click away.</p></agl-popover>API
Generated from the committed corpus, which check:corpus holds to the built library.
Popover
componentagl-popoverPopover is a container component that can overlay other components on page.
| Input | Type | Default | Description |
|---|---|---|---|
| aria | string | undefined | not documented | Defines a string that labels the input for accessibility. |
| aria | string | undefined | not documented | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
| dismissable | boolean | not documented | Enables to hide the overlay when outside is clicked. |
| style | { [klass: string]: any } | null | undefined | not documented | Inline style of the component. |
| style | string | undefined | not documented | Style class of 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). |
| auto | boolean | not documented | Whether to automatically manage layering. |
| aria | string | undefined | not documented | Aria label of the close icon. |
| base | number | not documented | Base zIndex value to use in layering. |
| focus | boolean | not documented | When enabled, focus moves into the panel on show: to the `initialFocus` target, else an element marked `autofocus`, else the first focusable element. |
| initial | string | undefined | not documented | Names the element that receives focus when the panel opens: a CSS selector matched inside the panel. Applies with `focusOnShow`. |
| 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. |
| motion | MotionOptions | undefined | not documented | The motion options. |
| Output | Type | Description |
|---|---|---|
| on | EventEmitter<any> | Callback to invoke when an overlay becomes visible. |
| on | EventEmitter<any> | Callback to invoke when an overlay gets hidden. |
| Template slot | Description |
|---|---|
| <ng-template #content> | Custom content 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. |