MaterialTooltipDirective constructor
MaterialTooltipDirective(
- DomPopupSourceFactory domPopupSourceFactory,
- ViewContainerRef viewContainerRef,
- HtmlElement element,
- ComponentLoader _viewLoader,
- ChangeDetectorRef _changeDetector,
- Window _window,
- @Attribute('initPopupAriaAttributes') String? initAriaAttributes,
- @Attribute('tooltipClass') String? tooltipClass,
Implementation
MaterialTooltipDirective(
DomPopupSourceFactory domPopupSourceFactory,
ViewContainerRef viewContainerRef,
this.element,
this._viewLoader,
this._changeDetector,
this._window,
@Attribute('initPopupAriaAttributes') String? initAriaAttributes,
@Attribute('tooltipClass') String? tooltipClass)
: _popupClassName =
constructEncapsulatedCss(tooltipClass, element.classes),
super(domPopupSourceFactory, viewContainerRef, element,
initAriaAttributes) {
inLongPress = false;
_delayedActivate = DelayedAction(tooltipShowDelay, _activate);
}