MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/material/tooltip/tooltip.ts:380–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378 private _isDestroyed = false;
379
380 constructor() {
381 const defaultOptions = this._defaultOptions;
382
383 if (defaultOptions) {
384 this._showDelay = defaultOptions.showDelay;
385 this._hideDelay = defaultOptions.hideDelay;
386
387 if (defaultOptions.position) {
388 this.position = defaultOptions.position;
389 }
390
391 if (defaultOptions.positionAtOrigin) {
392 this.positionAtOrigin = defaultOptions.positionAtOrigin;
393 }
394
395 if (defaultOptions.touchGestures) {
396 this.touchGestures = defaultOptions.touchGestures;
397 }
398
399 if (defaultOptions.tooltipClass) {
400 this.tooltipClass = defaultOptions.tooltipClass;
401 }
402 }
403
404 this._viewportMargin = MIN_VIEWPORT_TOOLTIP_THRESHOLD;
405 }
406
407 ngAfterViewInit() {
408 // This needs to happen after view init so the initial values for all inputs have been set.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected