Spanish Total.js
English
Documentation For AI agents
Contents

Your own catalogue

Offer your components in the Import components window, and let some appear only in some kinds of design.

.md GitHub
On this page

Import components shows the official catalogue. You can show your own instead, with the components of your team. How to open UI Builder with a list is in Use your own component library; this page covers the fields of the list.

The Import components window with the components of a catalogue in the group Demo

The list

[
    { "id": "greeting", "group": "Demo", "name": "Greeting", "author": "Jane Doe", "icon": "ti ti-comment", "version": "1", "url": "/components/greeting/editor.html", "readme": "Shows a short greeting." },
    { "id": "stepper", "group": "Demo", "name": "Stepper", "author": "Jane Doe", "icon": "ti ti-sort", "version": "1", "url": "/components/stepper/editor.html", "readme": "A number with a minus and a plus button." },
    { "id": "card", "group": "Demo", "name": "Card", "author": "Jane Doe", "icon": "ti ti-address-card", "version": "1", "url": "/components/card/editor.html", "type": ["app", "dashboard"], "readme": "A box with a title." }
]
FieldMeaning
idThe id of the component, the same as exports.id.
name, group, icon, author, versionWhat the window shows. Components are grouped by group and sorted by name.
urlThe address of editor.html. An address that starts with / is read from the server of UI Builder.
readmeThe text of Read me.
typeOptional. The kinds of design that offer the component, for example ["flowboard"]. Without it, every design offers it.

The kind of a design is the type of its template: app, dashboard, flowboard or part.

Open UI Builder with the list:

http://localhost:8000/?components=/components/db.json

Build the list from the files

The official repository builds its list with a script that reads the exports.* lines of every editor.html. You can keep your components in the same layout and do the same. See Share a component.

A list for a template

The components of a design can also hold the address of a JSON object that maps ids to addresses:

{
    "greeting": "/components/greeting/editor.html",
    "stepper": "/components/stepper/editor.html"
}

The Web app template loads its standard set this way, from https://cdn.componentator.com/uibuilder/app.json. Components from such a list are loaded again each time the design opens; they are not saved in the design file.

Made in Europe