Skip to main content

Boolean Value Model

The boolean value model defines a boolean value. The value can be either true or false.

Example

Check the Editors Example.

Configuration

import { createBooleanValueModel } from 'sequential-workflow-editor-model';

builder
.property('foo')
.value(
createBooleanValueModel({
defaultValue: true
})
);

Optional properties:

  • defaultValue - Defines the default value of the property. If not specified, the default value is false.

Value Reading

To read the value you just need to read the property value:

const value: boolean = step.properties['foo'];