Wocart

@wocart/theme v4.1.0


@wocart/theme / index / isFieldVisible

Function: isFieldVisible()

isFieldVisible(field, values): boolean

Whether an editor shows field, given the current values of the fields beside it — what is stored, else the default. A field with no value compares as null.

Parameters

field

FieldDefinition

values

Readonly<Record<string, unknown>>

Returns

boolean