@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
25 lines (24 loc) • 990 B
TypeScript
import { ESLMixinElement } from '../../esl-mixin-element/core';
import { ESLAnchornav } from './esl-anchornav';
import type { ESLIntersectionEvent, ESLElementResizeEvent } from '../../esl-event-listener/core';
/**
* ESLAnchornavSticked - custom mixin element for sticky positioned of {@link ESLAnchornav} element
*
* Use example:
* `<div esl-anchornav-sticked><esl-anchornav></esl-anchornav></div>`
*/
export declare class ESLAnchornavSticked extends ESLMixinElement {
static is: string;
protected _sticked: boolean;
/** The height of this anchornav container */
get anchornavHeight(): number;
/** Sticked state */
get sticked(): boolean;
set sticked(value: boolean);
/** Childs anchornav element */
protected get $anchornav(): ESLAnchornav | null;
/** Handles changing sticky state */
protected _onStateChange(): void;
protected _onIntersection(e: ESLIntersectionEvent): void;
protected _onResize(e: ESLElementResizeEvent): void;
}