carbon-components-angular
Version:
Next generation components
60 lines (56 loc) • 2.3 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | definition-tooptip.component.d.ts
*
* Copyright 2014, 2025 IBM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ChangeDetectorRef, ElementRef, NgZone, Renderer2, TemplateRef } from "@angular/core";
import { PopoverContainer } from "carbon-components-angular/popover";
import * as i0 from "@angular/core";
/**
* Get started with importing the module:
*
* ```typescript
* import { TooltipModule } from 'carbon-components-angular';
* ```
*
* [See demo](../../?path=/story/components-tooltip-definition--basic)
*/
export declare class TooltipDefinition extends PopoverContainer {
protected elementRef: ElementRef;
protected ngZone: NgZone;
protected renderer: Renderer2;
protected changeDetectorRef: ChangeDetectorRef;
static tooltipCount: number;
id: string;
/**
* The string or template content to be exposed by the tooltip.
*/
description: string | TemplateRef<any>;
/**
* Optional data for templates passed as implicit context
*/
templateContext: any;
openOnHover: boolean;
constructor(elementRef: ElementRef, ngZone: NgZone, renderer: Renderer2, changeDetectorRef: ChangeDetectorRef);
onBlur(event: Event): void;
onClick(event: Event): void;
hostkeys(event: KeyboardEvent): void;
mouseleave(event: any): void;
mouseenter(event: any): void;
onFocus(event: any): void;
isTemplate(value: any): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDefinition, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipDefinition, "cds-tooltip-definition, ibm-tooltip-definition", never, { "id": "id"; "description": "description"; "templateContext": "templateContext"; "openOnHover": "openOnHover"; }, {}, never, ["*"], false>;
}