MaterialTooltipDirective class

An ink-based tooltip which can be attached to any element.

Inheritance
Annotations
  • @Directive(selector: '[materialTooltip]', providers: [tooltipControllerBinding])

Constructors

MaterialTooltipDirective(DomPopupSourceFactory domPopupSourceFactory, ViewContainerRef viewContainerRef, HtmlElement element, ComponentLoader _viewLoader, ChangeDetectorRef _changeDetector, Window _window, @Attribute('initPopupAriaAttributes') String? initAriaAttributes, @Attribute('tooltipClass') String? tooltipClass)

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
canShow bool
Condition whether to show the tooltip.
no getter
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
inLongPress bool
getter/setter pair
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
positions List<RelativePosition>?
Positions that the tooltip should try to show.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceElement HtmlElement?
no setterinherited
text String
The text to show in the tooltip.
no getter
viewContainerRef → ViewContainerRef
finalinherited

Methods

endLongPress(TouchEvent event) → void
focus() → void
Item/component focuses itself
inherited
handleLongPress(Event _) → void
hide([bool immediate = false]) → void
ngAfterViewInit() → void
inherited
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
override
ngOnInit() → void
Executed after the first change detection run for a directive.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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
onOpen() → void
Called when the popup is opened.
inherited
setTooltip(Tooltip tooltip) → void
Sets the tooltip associated with this target.
override
show() → void
Shows the tooltip if _canShow is true, initializing and loading it into the view it if is not already.
toString() String
A string representation of this object.
inherited

Operators

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