Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Function: oneOf()

oneOf<U>(...values): OneOfBuilder<U>

The annotation builder for a component property with type 'enum', the property value can only be one of enum.

Type Parameters

U extends string | number

Parameters

• ...values: U[]

the possible values for the property.

Returns

OneOfBuilder<U>

the instance of the metadata property builder.

Stay in the know
Quickly Build Drag-and-Drop Forms
Star us on GitHub