ClickableTooltipTargetDirective class
A directive that marks the target of a tooltip and handles activating on mouse over (with delay), click, enter, and space.
This directive is slightly different from MaterialPaperTooltipComponent. Click / key events open the tooltip with no delay, and tooltips do not open on focus.
This directive is used in conjunction with a Tooltip Component. Such as the MaterialPaperTooltipComponent, which gives full control over the content of a simple tooltip.
- Inheritance
-
- Object
- PopupSourceDirective
- TooltipTarget
- TooltipBehavior
- ClickableTooltipTargetDirective
- Annotations
-
- @Directive(selector: '[clickableTooltipTarget]', exportAs: 'tooltipTarget')
Constructors
- ClickableTooltipTargetDirective(DomPopupSourceFactory domPopupSourceFactory, ViewContainerRef viewContainerRef, HtmlElement element, ChangeDetectorRef changeDetector, @Attribute('initPopupAriaAttributes') String? initAriaAttributes)
Properties
- alignOriginX → Alignment?
-
What point of the origin to use on the x-axis.
no setterinherited
- alignOriginY → Alignment?
-
What point of the origin to use on the y-axis.
no setterinherited
- alignX ← String
-
Alignment of the popup in the horizontal direction.
no getterinherited
- alignY ← String
-
Alignment of the popup in the vertical direction.
no getterinherited
-
dimensions
→ Rectangle<
num> ? -
The size of the source and its position relative to the viewport.
no setterinherited
- element ↔ HtmlElement
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRtl → bool
-
Whether the source direction is RTL.
no setterinherited
- popupId ← String?
-
Set the DOM ID of the popup controlled by this source.
no getterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceElement → HtmlElement?
-
no setterinherited
-
tooltipActivate
→ Stream<
bool> -
Event that fires when the tooltip is activated.
no setterinherited
- viewContainerRef → ViewContainerRef
-
finalinherited
Methods
-
focus(
) → void -
Item/component focuses itself
inherited
-
hideTooltip(
{bool immediate = false}) → void -
inherited
-
kbTrigger(
KeyboardEvent event) → void -
ngAfterViewInit(
) → void -
inherited
-
ngOnDestroy(
) → void -
Executed before the directive is removed from the DOM and destroyed.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBlur(
FocusEvent event) → void -
inherited
-
onBlurOrClick(
) → void -
inherited
-
onClick(
) → void -
onClose(
) → void -
Ensure the tooltip is deactivated when the popup closes.
inherited
-
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.
inherited
-
onMouseLeave(
) → void -
inherited
-
onMouseOver(
) → void -
inherited
-
onOpen(
) → void -
Called when the popup is opened.
inherited
-
setTooltip(
Tooltip component) → void -
Sets the tooltip associated with this target.
inherited
-
showTooltip(
) → void -
inherited
-
showTooltipWithDelay(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited