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

# Lists and files

> Lists, cards and tables of data, and file upload.

Lists, cards and tables of data, and file upload. This page holds the catalogue groups **List** and **Files**.

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

### cards · version 1

Type: `component`

Shows items from a data source as cards.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `count` | `Number` | no | `4` | **Count** in the settings form. |
| `items` | `Array` | no |  | The rows of each card (image, title, empty and other types), edited in the settings form. |
| `buttons` | `Array` | no |  | Your own list of buttons, edited in the settings form. |
| `shadow` | `Boolean` | no |  | **Drop shadow** in the settings form. |
| `radius` | `Boolean` | no |  | **Apply border radius** in the settings form. |

**Inputs:** none.  
**Outputs:** `card` (On card), `button` (On button).

With this component you can create interesting content. Most suitable on articles.

### datagrid · version 1

Type: `component`

Shows data from a data source in a table with columns, sorting and filtering.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datasource` | `String` | no |  | **Data source** in the settings form. A component (`@id`), a code list or a data view. |
| `margin` | `Number` | no | `0` | **Top margin** in the settings form. |
| `height` | `String` | no | `500` | **Height** in the settings form. One of `window` (Window), `parent` (Parent), `fluid` (Fluid), `auto` (Auto). |
| `minheight` | `Number` | no | `300` | **Min. height** in the settings form. |
| `border` | `Boolean` | no | `true` | **Enable border** in the settings form. |
| `numbering` | `Boolean` | no | `true` | **Enable numbering** in the settings form. |
| `checkbox` | `Boolean` | no | `false` | **Enable checkboxes** in the settings form. |
| `autoselect` | `Boolean` | no | `false` | **Enable auto-select first row** in the settings form. |
| `columns` | `Array` | no | `[]` | The columns of the grid, edited in the settings form. |

**Inputs:** `rows` (Rows).  
**Outputs:** `row` (On row), `button` (On button).

This component displays data from your datasource in a grid. In settings you can set datasource, as well as style of grid columns.

### fileuploader · version 1

Type: `component`

Uploads files to an address and keeps the answer as its value.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | `String` | no |  | **URL for upload** in the settings form. |
| `type` | `String` | no | `all` | **Type of files** in the settings form. One of `all` (All files), `image` (Images only), `text` (Plain text files only). |
| `multiple` | `Boolean` | no |  | **Allow uploading multiple files together** in the settings form. |

**Inputs:** `upload` (Upload files).  
**Outputs:** none.

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

The component allows users to upload files to a specific endpoint. A response will be binded to the path set in the configuration.

### listview · version 1

Type: `component`

Shows a list of items from a data source and sends the clicked item to an output.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `datasource` | `String` | no |  | **Datasource** in the settings form. A component (`@id`), a code list or a data view. |
| `icon` | `String` | no |  | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. |
| `nolabel` | `Boolean` | no | `false` | **Hide label** in the settings form. |
| `background` | `Boolean` | no | `false` | **Enable background** in the settings form. |

**Inputs:** none.  
**Outputs:** `click` (Click).

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

__Listview data-source needs to contain__:

```js
[
	{ name: 'Ruby' },
	{ name: 'PHP' },
	{ name: 'Total.js', description: 'Lorem ipsum' }, // description is optional
	{ name: 'Python' }
]
```
