@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
24 lines (23 loc) • 1.04 kB
TypeScript
import { ESLBaseElement } from '../../esl-base-element/core';
import type { ESLToggleable } from '../../esl-toggleable/core';
export declare class ESLToggleablePlaceholder extends ESLBaseElement {
static is: string;
/** List of attributes allowed to copy from origin to this element */
static readonly allowedAttrs: string[];
$origin: ESLToggleable | null;
/** Сreates a placeholder for a given element of the toggleable's descendant */
static from<T extends typeof ESLToggleablePlaceholder>(this: T, $el: ESLToggleable): InstanceType<T>;
connectedCallback(): void;
/** Builds attribute name for copy */
protected buildAttrName(name: string): string;
/** Copies allowed attributes from origin to this element */
protected copyAttributesFromOrigin(): void;
}
declare global {
export interface ESLLibrary {
ToggleablePlaceholder: typeof ESLToggleablePlaceholder;
}
export interface HTMLElementTagNameMap {
'esl-toggleable-placeholder': ESLToggleablePlaceholder;
}
}