Data
Components that read, change, collect and send data, most of them invisible in the published design.
On this page
Components that read, change, collect and send data, most of them invisible in the published design. This page holds the catalogue group Data.
Each entry gives the folder name and version of the component, its inputs and outputs, notes, its readme and its main settings: the key in the configuration, its default value and the field in the settings form. Every component also has Name and Read value from, described in Component settings. To add a component to a design, see Import components.
API
component
datagenerator · version 1
Creates data from JavaScript code, for example sample data for a chart.
datagenerator · version 1| Parameter | Type | Description |
|---|---|---|
value? |
String |
Code, edited in a code editor. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Data generator creates data defined in the configuration.
component
datareader · version 1
Reads data from an address and keeps it for other components.
datareader · version 1| Parameter | Type | Description |
|---|---|---|
interval? |
Number |
Interval in the settings form. Default: 0 |
read? |
String |
Read value from in the settings form. |
url? |
String |
URL address for obtaining data in the settings form. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Data reader reads data from the URL address and stores them in memory. Other components can read this data.
component
datasource · version 1
Shows data from an address.
datasource · version 1| Parameter | Type | Description |
|---|---|---|
border? |
Boolean |
Apply border and padding in the settings form. Default: true |
url? |
String |
URL address for obtaining data in the settings form. |
Inputs: load (Load data).
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
This component displays data from specified datasource.
component
datatransformer · version 1
Changes incoming data with your own JavaScript code.
datatransformer · version 1| Parameter | Type | Description |
|---|---|---|
value? |
String |
Code, edited in a code editor. Default: return value |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The data transform component can transform incoming data.
component
dataview · version 1
Reads data from a data view of your server and keeps it for other components.
dataview · version 1| Parameter | Type | Description |
|---|---|---|
model? |
String |
Data model in the settings form. A path. |
query? |
String |
Query arguments from the data model in the settings form. |
interval? |
Number |
Interval in the settings form. Default: 0 |
read? |
String |
Read value from incoming data in the settings form. |
id? |
String |
Choose a data view in the settings form. A data view of your server. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Data view reads data from predefined data views and stores them in memory. Other components can read this data.
component
dynamicsource · version 1
Loads items from an address and maps them to an id and a name.
dynamicsource · version 1| Parameter | Type | Description |
|---|---|---|
url? |
String |
Data source URL address in the settings form. Default: https://hostname.com/cities/{value} |
id? |
String |
Identifier in the settings form. Default: id |
text? |
String |
Name/Label in the settings form. Default: name |
items? |
Array |
Your own list of items, edited in the settings form. Default: [] |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The component loads data and map them automatically.
component
form · version 1
Collects the values of the components inside it and sends them when the user submits.
form · version 1| Parameter | Type | Description |
|---|---|---|
border? |
Boolean |
Apply border and padding in the settings form. Default: false |
checkvisible? |
Boolean |
Validate only visible components in the settings form. Default: true |
autoreset? |
Boolean |
Reset controls after send in the settings form. Default: true |
default? |
Boolean |
Apply default values after the start in the settings form. |
bindtoall? |
Boolean |
Bind value to all components with a defined path (otherwise to controls only) in the settings form. Default: true |
input? |
String |
Send data to input in the settings form. An input of the design. |
button? |
String |
Button label in the settings form. Default: SUBMIT |
icon? |
String |
Button icon in the settings form. An icon class, for example ti ti-totaljs. |
Inputs: load (Load data), partial (Load partial data), reset (Reset), clear (Clear).
Outputs: submit (Submit).
- Other components can follow it: it appears as
@idin Read value from.
The components creates a form.
component
datagps · version 1
Reads the GPS position of the device.
datagps · version 1| Parameter | Type | Description |
|---|---|---|
watcher? |
Boolean |
Enable real-time watcher in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
This component can retrieve GPS position.
Output:
{
lat: Number,
lng: Number,
speed: Number,
altitude: Number,
accuracy: Number,
pos: String
}
component
input · version 1
Receives data on its input and keeps it as its value.
input · version 1| Parameter | Type | Description |
|---|---|---|
read? |
String |
Read from in the settings form. |
Inputs: load (Load data).
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The component processes input data and sets it according to a defined path.
component
readvalue · version 1
Reads a value from another component by a path.
readvalue · version 1| Parameter | Type | Description |
|---|---|---|
read? |
String |
Read value from in the settings form. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Read value component reads a value according to the path and sets it according to the component's path.
component
redirect · version 1
Opens an address chosen from a data source.
redirect · version 1| Parameter | Type | Description |
|---|---|---|
datasource? |
String |
Datasource in the settings form. A component (@id), a code list or a data view. |
read? |
String |
Read from in the settings form. |
Inputs: load (Load data).
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The component can redirect page by datasource. Datasource is required and needs to contain:
[
{ id: 1, url: 'https://www.totaljs.com/' },
{ id: 2, url: 'https://www.totaljs.com/' },
{ id: 3, url: 'https://www.totaljs.com/' }
]
component
restreader · version 1
Reads data from a REST address and keeps it under its path.
restreader · version 1| Parameter | Type | Description |
|---|---|---|
read? |
String |
Read value from in the settings form. |
url? |
String |
URL address for obtaining data in the settings form. |
Inputs: load (Load data).
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
This component reads data from a REST service and sets them according to the specified path.
component
sendtoinput · version 1
Sends its value to an input of the design whenever the value changes.
sendtoinput · version 1| Parameter | Type | Description |
|---|---|---|
input? |
String |
Input in the settings form. An input of the design. |
read? |
String |
Read from in the settings form. |
write? |
String |
Write to in the settings form. |
Inputs: none.
Outputs: none.
This component can send data to an input.
component
wsreceiver · version 1
Connects to a WebSocket and binds the incoming messages to the data.
wsreceiver · version 1| Parameter | Type | Description |
|---|---|---|
endpoint? |
String |
WS endpoint in the settings form. Default: /realtime/ |
sendall? |
Boolean |
Send always all data in the settings form. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The component creates a WebSocket connection, binds all incoming messages to the model, and sends changes over WebSocket.