Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Variable: oneOf()

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

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

Sets the property as a "single select" property.

Type Parameters

U

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