c3-tooltip.component.ts 643B

123456789101112131415161718192021
  1. import { Component, ViewChild, TemplateRef, ChangeDetectorRef } from '@angular/core';
  2. @Component({
  3. selector: 'c3-tooltip',
  4. templateUrl: './c3-tooltip.component.html',
  5. styleUrls: ['./c3-tooltip.component.css'],
  6. exportAs: 'c3Tooltip'
  7. })
  8. export class C3Tooltip {
  9. @ViewChild(TemplateRef, { read: false }) template: TemplateRef<any>;
  10. /** Classes to be added to the tooltip. Supports the same syntax as `ngClass`. */
  11. tooltipClass: string | string[] | Set<string> | { [key: string]: any };
  12. constructor(private _changeDetectorRef: ChangeDetectorRef) { }
  13. _markForCheck(): void {
  14. this._changeDetectorRef.markForCheck();
  15. }
  16. }