Spanish Total.js
English
Documentation For AI agents
Contents

Logic and tools

Components that react to values, load other designs and show data for checking.

.md GitHub
On this page

Components that react to values, load other designs and show data for checking. This page holds the catalogue groups Logical, Special and Debugging.

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

counter · version 1

Counts how many times the value of the component it follows changes.

Inputs: none.

Outputs: none.

  • Other components can follow it: it appears as @id in Read value from.

This component keeps track of the count and increments it every time it receives a notify-event.

component

enable · version 1

Enables or disables the components inside it when a condition is met.
ParameterTypeDescription
border? Boolean Apply border and padding in the settings form. Default: true
type? String Perform in the settings form. One of enable (Enable), disable (Disable). Default: enable
condition? String Condition in the settings form. One of positive (When the value is positive), string (Must contain exact text), number (Must contain exact number), expression (Custom JavaScript expression). Default: positive
value? String Value in the settings form.

Inputs: none.

Outputs: none.

This component enables editing of elements in it, under specified conditions, you can set in settings.

component

link · version 1

Loads another design into this one.
ParameterTypeDescription
url? String URL address to the app source (JSON) in the settings form. A design from your list of designs.
resetcss? Boolean Reset element CSS in the settings form. Default: true
input? String Input ID in the settings form.

Inputs: none.

Outputs: none.

The component can load another app.

component

sound · version 1

Plays a sound when a condition is met.
ParameterTypeDescription
type? String Play in the settings form. One of Beep, Alert, Success, Confirm, Fail, Badge, Notification, Done, Drum, Message. Default: Beep
volume? Number Volume in the settings form. Default: 20
condition? String Condition in the settings form. One of positive (When the value is positive), string (Must contain exact text), number (Must contain exact number), expression (Custom JavaScript expression). Default: positive
value? String Value in the settings form.

Inputs: none.

Outputs: none.

This component will play the sound you set in your settings.

component

show · version 1

Shows or hides the components inside it when a condition is met.
ParameterTypeDescription
border? Boolean Apply border and padding in the settings form. Default: true
type? String Perform in the settings form. One of show (Show), hide (Hide). Default: show
condition? String Condition in the settings form. One of positive (When the value is positive), string (Must contain exact text), number (Must contain exact number), expression (Custom JavaScript expression). Default: positive
value? String Value in the settings form.

Inputs: none.

Outputs: none.

This component shows or hides the components you put into it. You can set the conditions in the settings of this component.

component

json · version 1

Shows its value as formatted JSON, for checking data.

Inputs: none.

Outputs: none.

This component prints data in JSON format.

Made in Europe