Lists and files
Lists, cards and tables of data, and file upload.
On this page
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. To add a component to a design, see Import components.
API
component
cards · version 1
Shows items from a data source as cards.
cards · version 1| Parameter | Type | Description |
|---|---|---|
count? |
Number |
Count in the settings form. Default: 4 |
items? |
Array |
The rows of each card (image, title, empty and other types), edited in the settings form. |
buttons? |
Array |
Your own list of buttons, edited in the settings form. |
shadow? |
Boolean |
Drop shadow in the settings form. |
radius? |
Boolean |
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.
component
datagrid · version 1
Shows data from a data source in a table with columns, sorting and filtering.
datagrid · version 1| Parameter | Type | Description |
|---|---|---|
datasource? |
String |
Data source in the settings form. A component (@id), a code list or a data view. |
margin? |
Number |
Top margin in the settings form. Default: 0 |
height? |
String |
Height in the settings form. One of window (Window), parent (Parent), fluid (Fluid), auto (Auto). Default: 500 |
minheight? |
Number |
Min. height in the settings form. Default: 300 |
border? |
Boolean |
Enable border in the settings form. Default: true |
numbering? |
Boolean |
Enable numbering in the settings form. Default: true |
checkbox? |
Boolean |
Enable checkboxes in the settings form. Default: false |
autoselect? |
Boolean |
Enable auto-select first row in the settings form. Default: false |
columns? |
Array |
The columns of the grid, edited in the settings form. Default: [] |
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.
component
fileuploader · version 1
Uploads files to an address and keeps the answer as its value.
fileuploader · version 1| Parameter | Type | Description |
|---|---|---|
url? |
String |
URL for upload in the settings form. |
type? |
String |
Type of files in the settings form. One of all (All files), image (Images only), text (Plain text files only). Default: all |
multiple? |
Boolean |
Allow uploading multiple files together in the settings form. |
Inputs: upload (Upload files).
Outputs: none.
- Other components can follow it: it appears as
@idin 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.
component
listview · version 1
Shows a list of items from a data source and sends the clicked item to an output.
listview · version 1| Parameter | Type | Description |
|---|---|---|
datasource? |
String |
Datasource in the settings form. A component (@id), a code list or a data view. |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
nolabel? |
Boolean |
Hide label in the settings form. Default: false |
background? |
Boolean |
Enable background in the settings form. Default: false |
Inputs: none.
Outputs: click (Click).
- Other components can follow it: it appears as
@idin Read value from.
Listview data-source needs to contain:
[
{ name: 'Ruby' },
{ name: 'PHP' },
{ name: 'Total.js', description: 'Lorem ipsum' }, // description is optional
{ name: 'Python' }
]