MaterialTooltipDirective constructor

MaterialTooltipDirective(
  1. DomPopupSourceFactory domPopupSourceFactory,
  2. ViewContainerRef viewContainerRef,
  3. HtmlElement element,
  4. ComponentLoader _viewLoader,
  5. ChangeDetectorRef _changeDetector,
  6. Window _window,
  7. @Attribute('initPopupAriaAttributes') String? initAriaAttributes,
  8. @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);
}