UNPKG

be-selectable

Version:

Adds class 'selected' to anchor element when the current route matches the href.

15 lines (12 loc) 474 B
import {BeDecoratedProps} from 'be-decorated/types'; export interface BeSelectableVirtualProps{ selected: boolean; emitEvents: boolean | string[]; } export interface BeSelectableProps extends BeSelectableVirtualProps{ proxy: HTMLAnchorElement & BeSelectableVirtualProps; } export interface BeSelectableActions{ intro(proxy: Element & BeSelectableVirtualProps, target: Element, bdp: BeDecoratedProps): void; checkLink(self: this): void; }