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;
}
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;
}