UNPKG

@exadel/esl

Version:

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

20 lines (19 loc) 924 B
import { ESLMixinElement } from '../../esl-mixin-element/core'; import { ESLMediaQuery } from '../../esl-media-query/core'; import { ESLToggleable } from '../../esl-toggleable/core'; import type { ESLMediaChangeEvent } from '../../esl-media-query/core'; /** * ESLOpenState mixin element * @author Yuliya Adamskaya, Alexey Stsefanovich (ala'n) * * ESLOpenState is a custom mixin element that can be used with {@link ESLToggleable}s to request opening/closing it by the media query condition */ export declare class ESLOpenState extends ESLMixinElement { static is: string; $host: ESLToggleable; /** Open state {@link ESLMediaQuery} condition from query string */ media: ESLMediaQuery; protected connectedCallback(): void; /** Handles query change and processes {@link ESLToggleable} toggle event in case query value is matched */ protected onMediaChange(event?: ESLMediaChangeEvent): void; }