site/node_modules/mj-context-menu/js/menu_store.d.ts

38 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { ContextMenu } from './context_menu.js';
export declare class MenuStore {
private menu;
protected store: HTMLElement[];
private _active;
private counter;
private attachedClass;
private taborder;
private attrMap;
constructor(menu: ContextMenu);
set active(element: HTMLElement);
get active(): HTMLElement;
next(): HTMLElement;
previous(): HTMLElement;
clear(): void;
insert(element: HTMLElement): void;
insert(elements: HTMLElement[]): void;
insert(elements: NodeListOf<HTMLElement>): void;
remove(element: HTMLElement): void;
remove(element: HTMLElement[]): void;
remove(element: NodeListOf<HTMLElement>): void;
inTaborder(flag: boolean): void;
insertTaborder(): void;
removeTaborder(): void;
private insertElement;
private removeElement;
private sort;
private insertTaborder_;
private removeTaborder_;
private addTabindex;
private removeTabindex;
private addEvents;
private addEvent;
private removeEvents;
private removeEvent;
private keydown;
}