MCPcopy Index your code
hub / github.com/angular/components / _setTooltipClass

Method _setTooltipClass

src/material/tooltip/tooltip.ts:716–724  ·  view source on GitHub ↗

Updates the tooltip class

(
    tooltipClass: string | string[] | Set<string> | {[key: string]: unknown},
  )

Source from the content-addressed store, hash-verified

714
715 /** Updates the tooltip class */
716 private _setTooltipClass(
717 tooltipClass: string | string[] | Set<string> | {[key: string]: unknown},
718 ) {
719 if (this._tooltipInstance) {
720 this._tooltipInstance.tooltipClass =
721 tooltipClass instanceof Set ? Array.from(tooltipClass) : tooltipClass;
722 this._tooltipInstance._markForCheck();
723 }
724 }
725
726 /** Inverts an overlay position. */
727 private _invertPosition(x: HorizontalConnectionPos, y: VerticalConnectionPos) {

Callers 2

tooltipClassMethod · 0.95
showMethod · 0.95

Calls 1

_markForCheckMethod · 0.45

Tested by

no test coverage detected