@stimulus-library/controllers
Version:
A library of useful controllers for Stimulus
20 lines (19 loc) • 567 B
TypeScript
import { BaseController } from "@stimulus-library/utilities";
export interface SyncValuePayload {
value: string | boolean;
dispatcher: HTMLElement;
}
export declare class SyncInputsController extends BaseController {
static values: {
key: StringConstructor;
};
readonly keyValue: string;
readonly hasKeyValue: boolean;
get _eventName(): string;
get _key(): string;
get _value(): string | boolean;
set _value(val: string | boolean);
connect(): void;
_emit(): void;
_read(payload?: SyncValuePayload): void;
}