UNPKG

@nekobird/controls

Version:

A collection of opinionated user-interface controls.

18 lines (17 loc) 612 B
import { PolyController } from './poly-controller'; export declare class ItemManager { private controller; items: HTMLElement[]; activeItems: HTMLElement[]; isActive: boolean; constructor(controller: PolyController); initialize(): this; loadItemsFromConfig(): this; setItems(items: HTMLElement[] | NodeListOf<HTMLElement> | string): this; filterItems(): this; private filterActiveItems; itemIsValid(item: HTMLElement): boolean; getItemFromId(id: string): HTMLElement | false; activate(item: HTMLElement): boolean; deactivate(item: HTMLElement): boolean; }