MaterialTooltipSourceDirective class

An implementation of PopupSourceDirective that shows and hides the popup on keyboard and mouse events.

The popup is shown after a delay on mouseover and keyboard focus. It is hidden immediately on mouseleave and keyboard blur.

This directive makes use of the Toggler interface in order to get a reference to the PopupRef.

NOTE: This directive will be used in conjunction with tooltips once they are made to be popups instead of just using popups.

Inheritance
Implemented types
Annotations
  • @Directive(selector: '[tooltipSource]', exportAs: 'tooltipSource')

Constructors

MaterialTooltipSourceDirective(DomPopupSourceFactory domPopupSourceFactory, HtmlElement element, @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
final
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
toggleable Toggleable
no getteroverride

Methods

activate() → void
Makes the tooltip appear.
deactivate() → void
Makes the tooltip disappear.
focus() → void
Item/component focuses itself
inherited
ngAfterViewInit() → void
inherited
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBlur() → void
onClose() → void
Called when the popup is closed.
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
onFocus() → void
onKeyUp() → void
onMouseLeave() → void
onMouseOver() → void
onOpen() → void
Called when the popup is opened.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

tooltipLabel String
final

Constants

hostStyleCursor → const String
hostTabIndex → const int