Object
Last updated
Was this helpful?
Was this helpful?
const validationForm: FormConfig = {
fields: [
{
key: "value",
label: "Value",
type: InputType.Number,
},
{
key: "message",
label: "Message",
type: InputType.Text,
},
],
};
export const validationsFormConfig: FormConfig = {
fields: [
{
key: "minLength",
label: "Min Length Validation",
type: InputType.Object,
children: validationForm,
},
{
key: "maxLength",
label: "Max Length",
type: InputType.Object,
children: validationForm,
},
],
};{
minLength: {
value: 3,
message: 'Minimum 3 letters',
},
maxLength: {
value: 50,
message: 'Maximum 50 letters',
}
}