Spanish Total.js
Deutsch
Dokumentation Für KI-Agenten
Inhalt

UI-Komponenten

Keep your own page components in TAS, organised in component databases.

.md Website

Diese Seite ist noch nicht übersetzt. Du liest das Original.

Auf dieser Seite

UI components holds your own components for the page designer. They are organised in folders:

  • a component database, for example demo
  • in it, one folder per component, for example clock
  • in each component folder, the files editor.html, render.html and settings.html

A component folder with its editor.html file

Create a component

1. Open UI components and select Create and then Create database. Enter a name in lower case, with the letters a to z only.

2. Open the new database and select Create and then Create component. Enter a name in lower case.

3. Open the component folder and select Create and then Create editor.html. TAS adds a working example component that you can change.

Use Create render.html and Create settings.html in the same way when your component needs them. Upload file adds other files.

Edit, rename and remove

Select a file to edit it. Right-click a folder or a file for Rename, Clone, Remove and the links to copy.

Back up and restore

In a component database, select Options:

  • Download database downloads the whole component database as a .zip file.
  • Upload .zip database restores a downloaded .zip file.

TAS publishes each component database at two addresses:

https://your-tas-server/ui/demo.json
https://your-tas-server/ui/demo.js

The .json address lists the editor files of the components, and the .js address contains the rendered components. Copy link, Copy link for editor and Copy link for render copy these addresses.

The folder that holds the component databases is set in Settings under UI components.

Hergestellt in Europa