Controls
Fields, buttons and pickers that read input from the user.
On this page
Fields, buttons and pickers that read input from the user. This page holds the catalogue group Controls.

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
button · version 1
A button that sends data to an input of the design when clicked.
button · version 1| Parameter | Type | Description |
|---|---|---|
input? |
String |
Input in the settings form. An input of the design. |
type? |
String |
Type in the settings form. One of primary (Primary), secondary (Secondary), outline (Outline). Default: primary |
size? |
String |
Size in the settings form. One of lg (Large), md (Medium), sm (Small). Default: md |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. Default: ti ti-angle-right |
fullwidth? |
Boolean |
Full width in the settings form. Default: false |
fullwidthxs? |
Boolean |
Full width XS in the settings form. Default: true |
bold? |
Boolean |
Bold in the settings form. Default: false |
radius? |
Boolean |
Apply border radius in the settings form. Default: true |
shadow? |
Boolean |
Apply shadow in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Offered in Import components for designs of type
app,dashboard.
The Button component lets you set:
- Path: the path of the button.
- Font and style: the font and the style of the button.
- Input: the input that receives the data when the button is clicked.
- Name: the label of the button.
component
calendar · version 1
Lets the user pick a date in a calendar.
calendar · version 1| Parameter | Type | Description |
|---|---|---|
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
bg? |
Boolean |
Apply background in the settings form. Default: false |
border? |
Boolean |
Apply border in the settings form. Default: false |
radius? |
Boolean |
Apply border radius in the settings form. Default: false |
shadow? |
Boolean |
Drop shadow in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The Calendar is a component which provides the multi-view representation to display and select a date. Also, provide options to navigate in different levels of views like month, year, decade.
component
checkbox · version 1
A checkbox with the value true or false.
checkbox · version 1| Parameter | Type | Description |
|---|---|---|
required? |
Boolean |
Required in the settings form. Default: false |
reverse? |
Boolean |
Reverse value in the settings form. Default: false |
default? |
Boolean |
Default value in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The component that switches between two states: true/false
component
checkboxlist · version 1
A list of checkboxes built from a data source or your own items.
checkboxlist · version 1| Parameter | Type | Description |
|---|---|---|
datasource? |
String |
Data source 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. |
required? |
Boolean |
Required in the settings form. Default: false |
hidelabel? |
Boolean |
Hide label in the settings form. Default: false |
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.
Checkboxlist data-source needs to contain:
[
{ id: 1, name: 'Ruby' },
{ id: 2, name: 'PHP' },
{ id: 3, name: 'node.js' },
{ id: 4, name: 'Python', }
]
component
color · version 1
Lets the user pick a colour.
color · version 1| Parameter | Type | Description |
|---|---|---|
help? |
String |
Help message in the settings form. |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
required? |
Boolean |
Required in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The component allows selecting a color from the offered list.
component
dropdown · version 1
A list to choose one item from a data source or your own items.
dropdown · version 1| Parameter | Type | Description |
|---|---|---|
datasource? |
String |
Data source in the settings form. A component (@id), a code list or a data view. |
placeholder? |
String |
Placeholder in the settings form. |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
required? |
Boolean |
Required in the settings form. Default: false |
hidelabel? |
Boolean |
Hide label in the settings form. |
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.
Dropdown data-source needs to contain:
[
{ id: 1, name: 'Nothing' },
{ id: 2, name: 'jComponent' },
{ id: 3, name: 'Angular.js' },
{ id: 4, name: 'React' }
]
component
icon · version 1
Lets the user pick an icon from the Total.js icons.
icon · version 1| Parameter | Type | Description |
|---|---|---|
help? |
String |
Help message in the settings form. |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
required? |
Boolean |
Required in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The component obtaining a list of Total.js icons and search field.
component
map · version 1
Shows a map with a marker that the user can move.
map · version 1| Parameter | Type | Description |
|---|---|---|
draggable? |
Boolean |
Enable changing the position of the marker in the settings form. Default: true |
height? |
Number |
Height in the settings form. Default: 200 |
zoom? |
Number |
Zoom in the settings form. Default: 11 |
maxzoom? |
Number |
Max. zoom in the settings form. Default: 19 |
default? |
String |
A default GPS position in the settings form. |
Inputs: gps (Load GPS).
Outputs: none.
- Loads the external library leaflet from cdnjs.cloudflare.com.
- Other components can follow it: it appears as
@idin Read value from.
This component displays a map, with a position, you set in settings as a map center. In settings you can change the style of this component.
component
progressbar · version 1
Shows progress as a bar.
progressbar · version 1| Parameter | Type | Description |
|---|---|---|
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
showvalue? |
Boolean |
Show value in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Progress bar is used to visualize the progression of an extended operation.
component
radiobutton · version 1
A group of radio buttons built from a data source or your own items.
radiobutton · version 1| Parameter | Type | Description |
|---|---|---|
datasource? |
String |
Data source 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. |
required? |
Boolean |
Required in the settings form. Default: false |
hidelabel? |
Boolean |
Hide label in the settings form. Default: false |
selectfirst? |
Boolean |
Select first radio in the settings form. |
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.
Radio button data-source needs to contain:
[
{ id: 1, name: 'Ruby', },
{ id: 2, name: 'PHP', },
{ id: 3, name: 'Node' },
{ id: 4, name: 'Python' }
]
component
richtext · version 1
A rich text editor based on TinyMCE.
richtext · version 1| Parameter | Type | Description |
|---|---|---|
apikey? |
String |
API Key in the settings form. Default: testapikey |
plugins? |
String |
Plugins in the settings form. |
autosave? |
Boolean |
Autosave in the settings form. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Configure this component with your API key, the plugins and autosave.
- API Key: the API key that the editor requires.
- Plugins: the TinyMCE plugins to enable in the editor.
- Autosave: turns autosave on or off.
component
slider · version 1
Lets the user pick a number by dragging a handle.
slider · version 1| Parameter | Type | Description |
|---|---|---|
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Component allows to select a single value, but highlights with a range selection from the min value to the current handle value.
component
textarea · version 1
A text field with several lines.
textarea · version 1| Parameter | Type | Description |
|---|---|---|
error? |
String |
Error message in the settings form. |
help? |
String |
Help message in the settings form. |
placeholder? |
String |
Placeholder in the settings form. |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
height? |
Number |
Height in the settings form. Default: 70 |
maxlength? |
Number |
Max. length in the settings form. |
required? |
Boolean |
Required in the settings form. Default: false |
resize? |
Boolean |
Allow vertical resize in the settings form. |
bold? |
Boolean |
Use bold font in the settings form. |
monospace? |
Boolean |
Use monospace font in the settings form. |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
The Multiline Textbox is used to edit or display multiple lines of text. You can allow resizing the height of the element.
component
textbox · version 1
A one-line field for text, numbers, dates, email addresses and other types.
textbox · version 1| Parameter | Type | Description |
|---|---|---|
type? |
String |
Type in the settings form. One of string (String), number (Number), date (Date), datetime (Date time), email (Email), zip (ZIP), phone (Phone number), password (Password). Default: string |
default? |
String |
Default value in the settings form. |
error? |
String |
Error message in the settings form. |
help? |
String |
Help message in the settings form. |
placeholder? |
String |
Placeholder in the settings form. |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
decimals? |
Number |
Number of decimals in the settings form. |
maxlength? |
Number |
Max. length in the settings form. |
min? |
Number |
Min. value in the settings form. |
max? |
Number |
Max. value in the settings form. |
required? |
Boolean |
Required in the settings form. Default: false |
bold? |
Boolean |
Use bold font in the settings form. |
monospace? |
Boolean |
Use monospace font in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
A Textbox is an input element that allows to get input from the user. It allows the user either to edit or display the input values.
Types:
stringnumberdatedatetimeemailZIPphone numberpassword
component
togglebutton · version 1
A switch with the value true or false.
togglebutton · version 1| Parameter | Type | Description |
|---|---|---|
required? |
Boolean |
Required in the settings form. Default: false |
label? |
Boolean |
Hide label in the settings form. Default: false |
fullwidth? |
Boolean |
Full width in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Button that switches between two states: true/false
component
togglegroup · version 1
A group of buttons where the user selects one.
togglegroup · version 1| Parameter | Type | Description |
|---|---|---|
datasource? |
String |
Datasource in the settings form. A component (@id), a code list or a data view. |
default? |
Number |
Default in the settings form. Default: 1 |
icon? |
String |
Icon in the settings form. An icon class, for example ti ti-totaljs. |
required? |
Boolean |
Required in the settings form. Default: false |
nolabel? |
Boolean |
Hide label in the settings form. Default: false |
background? |
Boolean |
Apply background in the settings form. Default: true |
radius? |
Boolean |
Apply border radius in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Toggle group data-source needs to contain:
[
{ id: 1, name: 'Ruby', icon: 'ti ti-totaljs' }, // icon is optional
{ id: 2, name: 'PHP' },
{ id: 3, name: 'Node' },
{ id: 4, name: 'Python' }
]
component
toolbar · version 1
A row of buttons with a label; each button sends data to an input.
toolbar · version 1| Parameter | Type | Description |
|---|---|---|
label? |
String |
Label in the settings form. |
items? |
Array |
The buttons of the toolbar, edited in the settings form. |
border? |
Boolean |
Border bottom in the settings form. Default: false |
padding? |
Boolean |
Enable padding in the settings form. Default: false |
Inputs: none.
Outputs: none.
- Other components can follow it: it appears as
@idin Read value from.
Series of buttons on a single line with headline.