UNPKG

@vendasta/store

Version:

Components and data for Store

29 lines (28 loc) 766 B
export declare type ControlType = 'checkbox' | 'dropdown' | 'file' | 'textbox' | 'textarea' | 'vbcuser'; export interface FieldBaseOptions { id: string; label: string; required?: boolean; description?: string; prefix?: string; suffix?: string; regexValidator?: string; regexErrorMessage?: string; disabled?: boolean; } export declare abstract class FieldBase<T> implements FieldBaseOptions { value: T; id: string; label: string; required: boolean; order: number; description: string; controlType: ControlType; prefix: string; suffix: string; regexValidator: string; regexErrorMessage: string; disabled: boolean; constructor(options: FieldBaseOptions); getLabel(): string; }