PopupSourceDirective class
A directive that exposes the PopupSource interface as popupSource
.
- Implemented types
- Implementers
- Annotations
-
- @Directive(selector: '[popupSource]', exportAs: 'popupSource')
Constructors
- PopupSourceDirective(DomPopupSourceFactory _domPopupSourceFactory, HtmlElement _element, @Optional() ReferenceDirective? _referenceDirective, @Optional() Focusable? _focusable, @Attribute('initPopupAriaAttributes') String? initAriaAttributes)
-
initPopupAriaAttributes
is an attribute input that decide whether to set the popup related aria attributes. This defaults to true and can be set to false for cases where the popup source isn't the focus target.
Properties
- alignOriginX → Alignment?
-
What point of the origin to use on the x-axis.
no setteroverride
- alignOriginY → Alignment?
-
What point of the origin to use on the y-axis.
no setteroverride
- alignX ← String
-
Alignment of the popup in the horizontal direction.
no getter
- alignY ← String
-
Alignment of the popup in the vertical direction.
no getter
-
dimensions
→ Rectangle<
num> ? -
The size of the source and its position relative to the viewport.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRtl → bool
-
Whether the source direction is RTL.
no setteroverride
- popupId ← String?
-
Set the DOM ID of the popup controlled by this source.
no getteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceElement → HtmlElement?
-
no setteroverride
Methods
-
focus(
) → void -
Item/component focuses itself
override
-
ngAfterViewInit(
) → void -
ngOnDestroy(
) → void - Executed before the directive is removed from the DOM and destroyed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClose(
) → void -
Called when the popup is closed.
override
-
onDimensionsChanged(
{bool track = false}) → Stream< Rectangle< ?num> > -
Returns a stream that has events with the dimensions of a DOM element that
the popup is positioned relatively to.
override
-
onOpen(
) → void -
Called when the popup is opened.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited