Skip to content
angulux
@anguless/angulux/popover

popover

1 declarations1 demos
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-popover

Popover is a container component that can overlay other components on page.

InputTypeDefaultDescription
ariaLabelstring | undefinednot documentedDefines a string that labels the input for accessibility.
ariaLabelledBystring | undefinednot documentedEstablishes relationships between the component and label(s) where its value should be one or more element IDs.
dismissablebooleannot documentedEnables to hide the overlay when outside is clicked.
style{ [klass: string]: any } | null | undefinednot documentedInline style of the component.
styleClassstring | undefinednot documentedStyle class of the component.
appendToHTMLElement | 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).
autoZIndexbooleannot documentedWhether to automatically manage layering.
ariaCloseLabelstring | undefinednot documentedAria label of the close icon.
baseZIndexnumbernot documentedBase zIndex value to use in layering.
focusOnShowbooleannot documentedWhen enabled, first button receives focus on show.
showTransitionOptions
deprecated — since v21.0.0. Use `motionOptions` instead.
stringnot documentedTransition options of the show animation.
hideTransitionOptions
deprecated — since v21.0.0. Use `motionOptions` instead.
stringnot documentedTransition options of the hide animation.
motionOptionsMotionOptions | undefinednot documentedThe motion options.
OutputTypeDescription
onShowEventEmitter<any>Callback to invoke when an overlay becomes visible.
onHideEventEmitter<any>Callback to invoke when an overlay gets hidden.
Template slotDescription
<ng-template #content>Custom content template.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.