---
title: Data
project: UI Builder
version: 1.0
section: components
language: en
license: MIT
url: https://totaljs.es/docs/uibuilder/1-0/components/data/
updated: 2026-11-20T06:51:57.969Z
---

# Data

> Components that read, change, collect and send data, most of them invisible in the published design.

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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/).

## API

### datagenerator · version 1

Type: `component`

Creates data from JavaScript code, for example sample data for a chart.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `String` | no |  | Code, edited in a code editor. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

Data generator creates data defined in the configuration.

### datareader · version 1

Type: `component`

Reads data from an address and keeps it for other components.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `interval` | `Number` | no | `0` | **Interval** in the settings form. |
| `read` | `String` | no |  | **Read value from** in the settings form. |
| `url` | `String` | no |  | **URL address for obtaining data** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

Data reader reads data from the URL address and stores them in memory. Other components can read this data.

### datasource · version 1

Type: `component`

Shows data from an address.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `border` | `Boolean` | no | `true` | **Apply border and padding** in the settings form. |
| `url` | `String` | no |  | **URL address for obtaining data** in the settings form. |

**Inputs:** `load` (Load data).  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

This component displays data from specified datasource.

### datatransformer · version 1

Type: `component`

Changes incoming data with your own JavaScript code.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `String` | no | `return value` | Code, edited in a code editor. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

The data transform component can transform incoming data.

### dataview · version 1

Type: `component`

Reads data from a data view of your server and keeps it for other components.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `model` | `String` | no |  | **Data model** in the settings form. A path. |
| `query` | `String` | no |  | **Query arguments from the data model** in the settings form. |
| `interval` | `Number` | no | `0` | **Interval** in the settings form. |
| `read` | `String` | no |  | **Read value from incoming data** in the settings form. |
| `id` | `String` | no |  | **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 `@id` in **Read value from**.

Data view reads data from predefined data views and stores them in memory. Other components can read this data.

### dynamicsource · version 1

Type: `component`

Loads items from an address and maps them to an id and a name.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | `String` | no | `https://hostname.com/cities/{value}` | **Data source URL address** in the settings form. |
| `id` | `String` | no | `id` | **Identifier** in the settings form. |
| `text` | `String` | no | `name` | **Name/Label** in the settings form. |
| `items` | `Array` | no | `[]` | Your own list of items, edited in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

The component loads data and map them automatically.

### form · version 1

Type: `component`

Collects the values of the components inside it and sends them when the user submits.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `border` | `Boolean` | no | `false` | **Apply border and padding** in the settings form. |
| `checkvisible` | `Boolean` | no | `true` | **Validate only visible components** in the settings form. |
| `autoreset` | `Boolean` | no | `true` | **Reset controls after send** in the settings form. |
| `default` | `Boolean` | no |  | **Apply default values after the start** in the settings form. |
| `bindtoall` | `Boolean` | no | `true` | **Bind value to all components with a defined path (otherwise to controls only)** in the settings form. |
| `input` | `String` | no |  | **Send data to input** in the settings form. An input of the design. |
| `button` | `String` | no | `SUBMIT` | **Button label** in the settings form. |
| `icon` | `String` | no |  | **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 `@id` in **Read value from**.

The components creates a form.

### datagps · version 1

Type: `component`

Reads the GPS position of the device.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `watcher` | `Boolean` | no | `false` | **Enable real-time watcher** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

This component can retrieve GPS position.

__Output__:

```js
{
	lat: Number,
	lng: Number,
	speed: Number,
	altitude: Number,
	accuracy: Number,
	pos: String
}
```

### input · version 1

Type: `component`

Receives data on its input and keeps it as its value.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `read` | `String` | no |  | **Read from** in the settings form. |

**Inputs:** `load` (Load data).  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

The component processes input data and sets it according to a defined path.

### readvalue · version 1

Type: `component`

Reads a value from another component by a path.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `read` | `String` | no |  | **Read value from** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

Read value component reads a value according to the path and sets it according to the component's path.

### redirect · version 1

Type: `component`

Opens an address chosen from a data source.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datasource` | `String` | no |  | **Datasource** in the settings form. A component (`@id`), a code list or a data view. |
| `read` | `String` | no |  | **Read from** in the settings form. |

**Inputs:** `load` (Load data).  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

The component can redirect page by datasource. Datasource is required and needs to contain: 

```js
[
	{ id: 1, url: 'https://www.totaljs.com/' },
	{ id: 2, url: 'https://www.totaljs.com/' },
	{ id: 3, url: 'https://www.totaljs.com/' }
]
```

### restreader · version 1

Type: `component`

Reads data from a REST address and keeps it under its path.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `read` | `String` | no |  | **Read value from** in the settings form. |
| `url` | `String` | no |  | **URL address for obtaining data** in the settings form. |

**Inputs:** `load` (Load data).  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

This component reads data from a REST service and sets them according to the specified path.

### sendtoinput · version 1

Type: `component`

Sends its value to an input of the design whenever the value changes.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `input` | `String` | no |  | **Input** in the settings form. An input of the design. |
| `read` | `String` | no |  | **Read from** in the settings form. |
| `write` | `String` | no |  | **Write to** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

This component can send data to an input.

### wsreceiver · version 1

Type: `component`

Connects to a WebSocket and binds the incoming messages to the data.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `endpoint` | `String` | no | `/realtime/` | **WS endpoint** in the settings form. |
| `sendall` | `Boolean` | no |  | **Send always all data** in the settings form. |

**Inputs:** none.  
**Outputs:** none.

- Other components can follow it: it appears as `@id` in **Read value from**.

The component creates a WebSocket connection, binds all incoming messages to the model, and sends changes over WebSocket.
