44 lines
1.1 KiB
TypeScript
Executable File
44 lines
1.1 KiB
TypeScript
Executable File
import { DirectiveBinding, ObjectDirective } from 'vue';
|
|
|
|
export declare type TooltipDirectiveModifiers = {
|
|
/**
|
|
* When present, it specifies that the component should be disabled.
|
|
* @defaultValue false
|
|
*/
|
|
disabled?: boolean | undefined;
|
|
/**
|
|
* When present, it adds a custom id to the tooltip.
|
|
*/
|
|
id?: string | undefined;
|
|
/**
|
|
* When present, it adds a custom class to the tooltip.
|
|
*/
|
|
class?: string | undefined;
|
|
/**
|
|
* When present, it adds a custom id to the tooltip.
|
|
* @defaultValue false
|
|
*/
|
|
escape?: boolean | undefined;
|
|
/**
|
|
* Automatically adjusts the element position when there is not enough space on the selected position.
|
|
* @defaultValue true
|
|
*/
|
|
fitContent?: boolean | undefined;
|
|
};
|
|
|
|
export interface TooltipDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
|
|
/**
|
|
* Text of the tooltip.
|
|
*/
|
|
value?: string | undefined;
|
|
/**
|
|
* Tooltip modifiers
|
|
* @type {TooltipDirectiveModifiers}
|
|
*/
|
|
modifiers?: TooltipDirectiveModifiers | undefined;
|
|
}
|
|
|
|
declare const Tooltip: ObjectDirective;
|
|
|
|
export default Tooltip;
|