@protorians/widgets
Version:
Create your web user interfaces with widgets
9 lines (8 loc) • 389 B
TypeScript
import type { IFormAttributes, IFormControllerWidget } from "../types/index.js";
export declare class FormController<A extends IFormAttributes> {
protected _widget: IFormControllerWidget<A> | undefined;
get widget(): IFormControllerWidget<A>;
bind(widget: IFormControllerWidget<A>): this;
payload<T>(): T;
static getPayload<T>(widget: IFormControllerWidget<any>): T;
}