@vendasta/store
Version:
Components and data for Store
19 lines (18 loc) • 505 B
TypeScript
export declare type ControlType = 'checkbox' | 'dropdown' | 'file' | 'textbox' | 'textarea';
export interface FieldBaseOptions {
id: string;
label: string;
required?: boolean;
description?: string;
}
export declare abstract class FieldBase<T> implements FieldBaseOptions {
value: T;
id: string;
label: string;
required: boolean;
order: number;
description: string;
controlType: ControlType;
constructor(options: FieldBaseOptions);
getLabel(): string;
}