Spanish Total.js
English
Documentation For AI agents
Contents

Content

Text, images, video, boxes and tabs that show content.

.md GitHub
On this page

Text, images, video, boxes and tabs that show content. This page holds the catalogue group Content.

A Headline, a Paragraph and a green Callout in a published design

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

accordion · version 1

Groups content into panels that open and close one below the other.
ParameterTypeDescription
items? Array The panels of the accordion, edited in the settings form.
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: true
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.

The Accordion is a vertically collapsible content panel which is displaying panels, one or multiple at a time within the available space.

component

callout · version 1

Shows a short message in a coloured box with an icon.
ParameterTypeDescription
color? String Type in the settings form. Default: #F0F0F0
icon? String Icon in the settings form. An icon class, for example ti ti-totaljs. Default: ti ti-totaljs

Inputs: none.

Outputs: none.

  • Offered in Import components for designs of type app, dashboard.

The Callout component creates callout messages. In its settings you set:

  • Path: the path of the value.
  • Name: the name or label of the callout.
  • Icon: the icon of the callout.
  • Type: the type of the callout: alert, error, message or success.
component

comment · version 1

Holds a note for the people who edit the design; the published design does not show it.

Inputs: none.

Outputs: none.

A simple component for writing comments.

component

externalimage · version 1

Shows an image from an address, optionally as a link.
ParameterTypeDescription
src? String Image URL address in the settings form. Default: https://cdn.totaljs.com/logo.png
width? String Width in the settings form.
height? String Height in the settings form.
rounded? Boolean Rounded image in the settings form. Default: true
link? Boolean Enable link in the settings form. Default: false
newtab? Boolean Open link in a new tab in the settings form. Default: true
url? String Link URL address in the settings form.

Inputs: none.

Outputs: none.

This component renders an external image from an address.

component

gap · version 1

Adds empty vertical space of a fixed height.
ParameterTypeDescription
height? Number Height in the settings form. Default: 25

Inputs: none.

Outputs: none.

This component creates a gap, according to number of pixels you set in settings.

component

headline · version 1

Shows a heading of level H1, H2 or H3.
ParameterTypeDescription
type? String Type in the settings form. One of h1 (H1), h2 (H2), h3 (H3). Default: h1
align? String Align in the settings form. One of left (Left), center (Center), right (Right). Default: left
color? String Color in the settings form. A colour.

Inputs: none.

Outputs: none.

This component creates headline. You can set type and style in settings.

component

hr · version 1

Draws a horizontal line.

Inputs: none.

Outputs: none.

Horizontal rule component.

component

html · version 1

Shows your own HTML code.
ParameterTypeDescription
html? String Code, edited in a code editor. Default: You <b>HTML</b> code

Inputs: none.

Outputs: none.

This component renders raw HTML content.

component

image · version 1

Shows an image that you upload or pick in the editor.
ParameterTypeDescription
rounded? Boolean Rounded image in the settings form. Default: true

Inputs: none.

Outputs: none.

This component inserts image from your device, or from specific path. Just click on the component in the editor, and insert comfortably image from your device, or set a path to your image in settings.

component

infocard · version 1

Shows a label and a value, for example a status.
ParameterTypeDescription
color? String Border color in the settings form. A colour.
isnullable? Boolean Render nullable value in the settings form.

Inputs: none.

Outputs: none.

This component displays an information-type text. You can set your style in settings.

component

listbox · version 1

Shows a list of items from a data source and sends the clicked item to an output.
ParameterTypeDescription
datasource? String Data source in the settings form. A component (@id), a code list or a data view.
output? String Output in the settings form. An output of the design.
icon? String Icon in the settings form. An icon class, for example ti ti-totaljs.
hidelabel? Boolean Hide label in the settings form. Default: false
background? Boolean Enable background in the settings form. Default: false
items? Array Your own list of items, edited in the settings form. Default: []

Inputs: none.

Outputs: click (Click).

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

Listbox data-source needs to contain:

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

panel · version 1

A box with a label and an area for other components.
ParameterTypeDescription
icon? String Icon in the settings form. An icon class, for example ti ti-totaljs. Default: ti ti-grid
bglabel? Boolean Apply background on label in the settings form. Default: false
bgcontent? Boolean Apply background on content in the settings form. Default: false
border? Boolean Apply border in the settings form. Default: true
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.

The component is suitable to making a better design.

component

paragraph · version 1

Shows a paragraph of text that you edit on the canvas.
ParameterTypeDescription
size? String Font size in the settings form. One of 12 (Small), 14 (Normal), 18 (Big). Default: 14
align? String Text align in the settings form. One of left (Left), center (Center), right (Right), justify (Justify). Default: left
color? String Color in the settings form. A colour. Default: #777

Inputs: none.

Outputs: none.

This component creates a paragraph element with specific style you can set in settings.

component

rating · version 1

Lets the user give a star rating.
ParameterTypeDescription
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 @id in Read value from.

The component lets a user provide a star rating or view other people's ratings on a numeric scale for any service provided.

component

stylebox · version 1

A styled box with an area for other components.
ParameterTypeDescription
background? Boolean Apply background in the settings form. Default: true
padding? Boolean Apply padding in the settings form. Default: true
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.

This component is a content component that displays the content you put into it in the editor. You can style this component in settings.

component

tabs · version 1

Shows content in tabs, one tab at a time.
ParameterTypeDescription
items? Array The tabs, edited in the settings form.

Inputs: none.

Outputs: none.

The component is a content panel to show multiple contents in specific space one at a time.

component

video · version 1

Plays a YouTube or Vimeo video.
ParameterTypeDescription
url? String URL address to YouTube/Vimeo in the settings form.

Inputs: none.

Outputs: none.

This component plays a video from a link you set in settings.

Made in Europe