UNPKG

@ribajs/bs4

Version:

Bootstrap 4 module for Riba.js

82 lines (81 loc) 2.53 kB
import { TooltipOptions } from "./../interfaces/tooltip-options.js"; export declare class TooltipService { static readonly CONSTANTS: { [key: string]: any; }; private _isEnabled; private _timeout; private _hoverState; private _activeTrigger; private _popper; protected element: HTMLElement | HTMLUnknownElement; protected config: TooltipOptions; protected tip: null | HTMLElement; constructor(element: HTMLElement | HTMLUnknownElement, config: TooltipOptions); static get VERSION(): string; static get Default(): TooltipOptions; static get NAME(): string; static get DATA_KEY(): string; static get Event(): { HIDE: string; HIDDEN: string; SHOW: string; SHOWN: string; INSERTED: string; CLICK: string; FOCUSIN: string; FOCUSOUT: string; MOUSEENTER: string; MOUSELEAVE: string; }; static get EVENT_KEY(): string; static get DefaultType(): { animation: string; template: string; title: string; trigger: string; delay: string; html: string; selector: string; placement: string; offset: string; container: string; fallbackPlacement: string; boundary: string; sanitize: string; sanitizeFn: string; allowList: string; popperConfig: string; }; enable(): void; disable(): void; toggleEnabled(): void; toggle(event: Event): void; dispose(): void; show(): void; hide(): void; update(): void; isWithContent(): boolean; getTipElement(): HTMLElement; setContent(): void; setElementContent(element: HTMLElement | null, content: Element | null | string): void; getTitle(): string; _getPopperConfig(attachment: string): any; _addAttachmentClass(attachment: string): void; _getOffset(): any; _getContainer(): Element | null; _getAttachment(placement?: string): string; _setListeners(): void; _hideModalHandler(): void; _fixTitle(): void; _enter(event?: Event, context?: any): void; _leave(event?: Event, context?: any): void; _isWithActiveTrigger(): boolean; _getConfig(config: TooltipOptions): TooltipOptions; _getDelegateConfig(): TooltipOptions; _cleanTipClass(): void; _handlePopperPlacementChange(popperData: any): void; _fixTransition(): void; static getInstance(element: HTMLElement): any; } export default TooltipService;