Tooltip modifiers added to .d.ts

pull/3699/head
Tuğçe Küçükoğlu 2023-03-02 13:54:16 +03:00
parent aae9a18ffb
commit e72e9f8918
1 changed files with 41 additions and 1 deletions

View File

@ -1,5 +1,8 @@
import { DirectiveBinding, ObjectDirective } from 'vue';
/**
* Defines options of Tooltip.
*/
export interface TooltipOptions {
/**
* Text of the tooltip.
@ -30,8 +33,35 @@ export interface TooltipOptions {
fitContent?: boolean | undefined;
}
export declare type TooltipDirectiveModifiers = {};
/**
* Defines modifiers of Tooltip.
*/
export declare type TooltipDirectiveModifiers = {
/**
* Right position for Tooltip.
*/
right?: string | undefined;
/**
* Feft position for Tooltip.
*/
left?: string | undefined;
/**
* Top position for Tooltip.
*/
top?: string | undefined;
/**
* Bottom position for Tooltip.
*/
bottom?: string | undefined;
/**
* Focus event for Tooltip.
*/
focus?: string | undefined;
};
/**
* Binding of Tooltip directive.
*/
export interface TooltipDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
/**
* Value of the tooltip.
@ -44,6 +74,16 @@ export interface TooltipDirectiveBinding extends Omit<DirectiveBinding, 'modifie
modifiers?: TooltipDirectiveModifiers | undefined;
}
/**
* **PrimeVue - Tooltip**
*
* _Tooltip directive provides advisory information for a component._
*
* [Live Demo](https://www.primevue.org/tooltip/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
*
*/
declare const Tooltip: ObjectDirective;
export default Tooltip;