@reaktly-js/tone-accessibility
Version:
A vanilla JS Accessability Widget compliant with ADA and WCAG 2.2.
33 lines (32 loc) • 1.04 kB
TypeScript
interface MenuComponent extends HTMLElement {
colSpan?: number;
rowSpan?: number;
}
export declare class AccessibilityMenu extends HTMLElement {
private shadow;
private _isOpen;
private _fabPosition;
constructor();
static get observedAttributes(): string[];
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
connectedCallback(): void;
disconnectedCallback(): void;
/**
* A dedicated, private method to handle updating all translations.
* This calls our new, simple utility function.
*/
private updateTranslations;
private handleResetClick;
addComponent(component: MenuComponent, options?: {
colSpan?: number;
rowSpan?: number;
}): void;
toggle(force?: boolean): void;
get isOpen(): boolean;
set isOpen(value: boolean);
get fabPosition(): typeof this._fabPosition;
set fabPosition(value: typeof this._fabPosition);
private applyPositionClass;
private render;
}
export {};