dynamic-forms / Function

validateRowNesting

Validates that a row field doesn't contain hidden fields. Hidden fields are not allowed in rows because rows are for horizontal layouts, and hidden fields don't render anything.

Presentation

function validateRowNesting(
  rowField: RowField<readonly RowAllowedChildren[]>,
): boolean;

Returns

boolean -

true if valid (no hidden fields), false otherwise

Parameters

NameTypeDescription
rowField
RowField<readonly RowAllowedChildren[]>

The row field to validate