UNPKG

@stimulus-library/controllers

Version:

A library of useful controllers for Stimulus

31 lines (30 loc) 1.02 kB
import { BaseController } from "@stimulus-library/utilities"; import { LocalStorageProxy } from "@stimulus-library/mixins"; export declare class ElementSaveController extends BaseController { static targets: string[]; static values: { id: StringConstructor; attributes: StringConstructor; restoreOnLoad: BooleanConstructor; }; readonly hasElementTarget: boolean; readonly elementTarget: HTMLElement; readonly elementTargets: HTMLElement[]; readonly idValue: string; readonly attributesValue: string; readonly hasIdValue: boolean; readonly restoreOnLoadValue: boolean; readonly hasRestoreOnLoadValue: boolean; _store: LocalStorageProxy<{ [idx: string]: string; }>; get _id(): string; get _uniqueIdentifier(): string; get _restoreOnLoad(): boolean; get _element(): HTMLElement; initialize(): void; connect(): void; clear(event?: Event): void; save(event?: Event): void; restore(event?: Event): void; }