@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
23 lines (22 loc) • 815 B
TypeScript
import { ESLMixinElement } from '../../esl-mixin-element/core';
/**
* ESLAnchor - custom mixin element for setting up anchor for {@link ESLAnchornav} attaching
*
* Use example:
* `<div esl-anchor id="my-anchor-id" title="My anchor title"></div>`
*/
export declare class ESLAnchor extends ESLMixinElement {
static is: string;
CHANGE_EVENT: string;
data: Record<string, unknown>;
protected connectedCallback(): void;
protected disconnectedCallback(): void;
protected attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
/** Sends a broadcast event to Anchornav components to refresh the list of anchors */
protected sendRequestEvent(): void;
}
declare global {
export interface ESLLibrary {
Anchor: typeof ESLAnchor;
}
}