Links

Manage connections with Data logic components

Data components are used in the Logic view to store or retrieve data, which you can then manipulate with Logic components.
This section provides overviews of the following Data components:
  • Array: Stores an array of data.
  • Object: Stores a JSON object.
  • request: Sends an API request.
  • Variable: Stores a variable.

Array

The Array component stores an array object, which you can manipulate in your application logic.
By default, the Array component is equipped with the following nodes:
Node
Description
setValue
Calls the Array component.
value
Input node for the Array's value.
getValue
Returns the Array's value.
onChange
Event that occurs when the Array's value changes.

Object

The Object component stores an object value, which you can manipulate in your application logic.
By default, the Object component is equipped with the following nodes:
Node
Description
setValueAtPath
Sets the value at the specified object path.
path
Object path where setValueAtPath is applied. Object paths are written with dot operator syntax.
value
Value that setValueAtPath uses to set the object path.
getValue
Returns the object value.
onChange
Event that occurs when the object value changes.
value
Value of the object after it changes.

request

The request component enables you to connect your application to an external data source via an API. You can use this component to perform API methods from your app.
By default, the request component is equipped with the following nodes:
Node
Description
call
Calls the request component.
onSuccess
Event that occurs when the API request is successful.
response
When the request is successful, returns the value of the API response.
onError
Event that occurs when the API request is not successful.
error
When the request is not successful, returns an error message.

Variable

The Variable component stores a variable value, which you can manipulate in your application logic.
By default, the Variable component is equipped with the following nodes:
Node
Description
setValue
Calls the Variable component.
value
Input node for the Variable's value.
getValue
Returns the Variable's value.
onChange
Event that occurs when the Variable's value changes.