Skip to content

Latest commit

 

History

History
112 lines (84 loc) · 1.6 KB

File metadata and controls

112 lines (84 loc) · 1.6 KB

TextArea Interface

Tracks the value and validation status of an individual TextArea.


interface Fields {
    type: 'textarea';
    label?: string | null;
    name: string;
    attr?: Attributes;
    class?: string | null;
    value?: string | null;
    gridLayout?: GridLayout | null;
    validations?: Validator[] | [];
    relation?: RelationConfig[] | [];
    changeEvent?: EventValue;
}


Supported Interface


GridLayout Interface

interface GridLayout {
    startColumn: number;
    endColumn: number;
    startRow: number;
    endRow: number;
}


Attributes Interface

interface Attributes {
    class?: string | null;
    readonly?: boolean | false;
    placeholder?: string | '';
    display?: boolean | true;
}


Validator Interface

interface Validator {
    name: string | null;
    validationValue?: any | null;
    message?: string | null;
}


RelationConfig Interface

interface RelationConfig {
    action: string | null;
    operation: string | null;
    where: WhereConfig[] | [];
    value: boolean | true;
}


EventValue Interface

interface EventValue {
    validateForm?: boolean | false;
    returnValue?: boolean | false;
    returnFormObject?: boolean | false;
    resetForm?: boolean | false;
    returnFieldObject?: boolean | false;
}


WhereConfig Interface

interface WhereConfig {
    rowId: string | null;
    fieldName: string | null;
    value: any | null;
}