UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

31 lines (30 loc) 1.23 kB
import { ESLMixinElement } from '../../esl-mixin-element/core'; /** * ESLLineClampToggler mixin element * @author Feoktyst Shovchko * * ESLLineClampToggler is a custom attribute designed to work in pair with {@link ESLLineClamp} * Its purpose is provide toggle controls for switching between regular {@link ESLLineClamp} values and {@link ESLLineClampAlt} values. */ export declare class ESLLineClampToggler extends ESLMixinElement { static is: string; /** Custom event name to notify target about toggle */ CLAMP_EVENT: string; /** Attribute to mark the target element as active */ ALT_ACTIVE_ATTRIBUTE: string; /** Target selector for the element to control */ target: string; /** Marker attribute to indicate active state */ active: boolean; /** @returns the target element to control */ get $target(): HTMLElement; protected get isTargetActive(): boolean; protected connectedCallback(): void; protected updateState(): void; protected initA11y(): void; /** Updates accessibility attributes based on the current state */ updateA11y(): void; protected toggle(value?: boolean): void; protected onToggle(): void; protected onClampToggle(): void; }