import popper.js
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
615dc56d16
commit
16fb2bb919
241 changed files with 34099 additions and 0 deletions
44
assets/u/static/popper.js-1.16.0/packages/tooltip/index.d.ts
vendored
Normal file
44
assets/u/static/popper.js-1.16.0/packages/tooltip/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
import { Boundary, Placement, PopperOptions } from 'popper.js';
|
||||
|
||||
export type TitleFunction = () => string;
|
||||
|
||||
export type Delay = Record<'show' | 'hide', number>;
|
||||
|
||||
export interface Options {
|
||||
placement?: Placement;
|
||||
arrowSelector?: string;
|
||||
innerSelector?: string;
|
||||
container?: HTMLElement | string;
|
||||
delay?: number | Delay;
|
||||
html?: boolean;
|
||||
template?: string;
|
||||
title?: string | HTMLElement | TitleFunction;
|
||||
/**
|
||||
* available options are click, hover, focus, manual
|
||||
* required to form a space delimited string
|
||||
* e.g. 'hover focus'
|
||||
*/
|
||||
trigger?: string;
|
||||
closeOnClickOutside?: boolean;
|
||||
boundariesElement?: Boundary | HTMLElement;
|
||||
offset?: number | string;
|
||||
popperOptions?: PopperOptions;
|
||||
}
|
||||
|
||||
declare class Tooltip {
|
||||
constructor(reference: HTMLElement, options: Options);
|
||||
|
||||
_isOpen: boolean;
|
||||
|
||||
show(): void;
|
||||
|
||||
hide(): void;
|
||||
|
||||
dispose(): void;
|
||||
|
||||
toggle(): void;
|
||||
|
||||
updateTitleContent(title: string | HTMLElement): void;
|
||||
}
|
||||
|
||||
export default Tooltip;
|
||||
Loading…
Add table
Add a link
Reference in a new issue