bootstrap-italia
Version:
Bootstrap Italia è un tema Bootstrap 5 per la creazione di applicazioni web nel pieno rispetto delle linee guida di design per i siti internet e i servizi digitali della PA
60 lines (39 loc) • 1.49 kB
TypeScript
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
import { type GetInstanceFactory, type GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
declare class Cookiebar extends BaseComponent {
static get NAME(): string
static get VERSION(): string
/**
* Static method which allows you to get the instance associated
* with a DOM element.
*/
static getInstance: GetInstanceFactory<Cookiebar>;
/**
* Static method which allows you to get the modal instance associated with
* a DOM element, or create a new one in case it wasn’t initialised
*/
static getOrCreateInstance: GetOrCreateInstanceFactory<Cookiebar>;
static clearCookie(): void
static _handleAccept(cookiebarInstance: any): (event: any) => void
static _handleConsent(cookiebarInstance: any): (event: any) => void
static _getCookieEU(): string
constructor(element: HTMLElement)
_isShown: boolean
_isTransitioning: boolean
show(): void
hide(): void
accept(element: HTMLElement): void
_isAnimated(): boolean
_showElement(): void
_hideElement(): void
_setCookieEU(): void
_getRootElement(element: HTMLElement): any
_triggerCloseEvent(element: HTMLElement): any
_removeElement(element: HTMLElement): void
}
export { Cookiebar }