Select (enum)

Click to copy

Select component to select Enumeration type of objects.


Initial settings

Data source - enum type of object to be used to show dropdown options from.

Mode - choose Multiple for being able to select multiple options from the dropdown. Otherwise, Single mode should be used.


Look and Feel Settings

Label (not mantory) to be used to show the component's label.

Placeholder (not mandatory) to be used to show the component's placeholder.

Name (mandatory) - name of the component.

Size (mandatory) - size of the component. Is set to Default when component is created.

Search (mandatory) - to be able to search within available dropdown options. Is turned off by default. 

Clear icon (mandatory) - shows clear options icon if enabled. Is turned off by default.

Disabled (mandatory) - makes the component disabled if turned on. Is turned off by default.

Visible (mandatory) - makes the component visible if turned on. Enabled by default.


Data

Data source - Data Model in use. Configurable only on component's creation.
 
 


Workflow triggers

  • onChange - fires when the component's state is change.
  • onFocus - fires when the Select (enum) component is being focused on.
  • onBlur - fires when the Select (enum) component is blurred.
  • onCreate - fires when the component is created.
  • onDestroy - fires when the component is destroyed. 

Component Actions:

Select Enum Get Properties

Gets the component's properties.

Input parameters:

  • Component Id [string] - Select Enum component's identifier;

Output parameters:

  • Selected [enum / enum array] - selected option(s). To be shown in the business process when the Component ID is specified only.
  • Label [string] - component's label;
  • Placeholder [string] - component's placeholder;
  • Allow Clear [boolean] - allows clear the selection if true;
  • Disable [boolean] - disables component if true;
  • Tooltip [string] - tooltip string;
  • Required Mark [boolean] - shows required mark if true;
  • Debounce (ms) [integer] - delay to validate the value;
  • Validate Icon [boolean] - icon to be shown on validate the value;
  • Validate Status [Status type] - status to be shown on validate the value; 
  • Validate Message [string] - message to be shown on validate the value

Select Enum Get Properties

Select Enum Set Properties

Sets the component's properties.

Input parameters:

  • Selected [enum/ enum array] - selected option(s). To be shown in the business process when the Component ID is specified only.
  • Component Id [string] - component's identifier;
  • Label [string] - component's label;
  • Placeholder [string] - component's placeholder;
  • Allow Clear [boolean] - allows clear the selection if true;
  • Disable [boolean] - disables component if true;
  • Tooltip [string] - tooltip string;
  • Required Mark [boolean] - shows required mark if true;
  • Debounce (ms) [integer] - delay to validate the value;
  • Validate Icon [boolean] - icon to be shown on validate the value;
  • Validate Status [Status type] - status to be shown on validate the value; 
  • Validate Message [string] - message to be shown on validate the value;

Select Enum Set Properties

Select Enum Update Properties

Updates component's properties.

Input parameters:

  • Selected [enum/ enum array] - selected option(s). To be shown in the business process when the Component ID is specified only.
  • Component Id [string] - component's identifier;
  • Label [string] - component's label;
  • Placeholder [string] - component's placeholder;
  • Allow Clear [boolean] - allows clear the selection if true;
  • Disable [boolean] - disables component if true;
  • Tooltip [string] - tooltip string;
  • Required Mark [boolean] - shows required mark if true;
  • Debounce (ms) [integer] - delay to validate the value;
  • Validate Icon [boolean] - icon to be shown on validate the value;
  • Validate Status [Status type] - status to be shown on validate the value; 
  • Validate Message [string] - message to be shown on validate the value;

Select Enum Update Properties


Usage example

It is possible to make some options to be preselected in the Select (Enum) component. 

The logic should be following:

  • Drag and drop Select Enum Set Properties business process block into the canvas.

  • Define the Component ID to make Selected property visible for configuring.

  • Once Selected is available, define the value as needed.

  • This logic should work when the component is created (onCreate).