--- title: Introduction project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/introduction/ updated: 2026-11-19T08:01:44.830Z --- # Introduction > What Total.js UI Builder is, what you can make with it and where to start. Total.js UI Builder is a visual editor for user interfaces. You drag ready-made components onto a canvas, set them up in forms and get a working page: a web app screen, a form, a dashboard or a floor plan with live markers. The editor runs in your browser. The small Total.js server only delivers the editor; it has no database, no accounts and keeps nothing. You keep your work as files: you save a design to a `.json` file and open it again later. ## What you can make - **Web app screens and forms.** Text boxes, buttons, lists, tabs and layouts. See [Build a contact form](../../recipes/contact-form/). - **Dashboards.** Charts and value cards fed with data. See [Show data in a line chart](../../recipes/line-chart/). - **Flowboards.** A floor plan image with markers on it. See [Flowboard](../flowboard/). - **Parts.** Small reusable pieces of a form. See [Templates](../templates/). When a design is ready, you publish it as a standalone HTML page or as a JSON file for another app. See [Publish a design](../publish/). ## What to read next 1. [Install UI Builder](../install/) and open it in your browser. 2. Pick a template: [Start a new design](../start-a-design/). 3. Learn the screen: [The editor](../editor-overview/). 4. Build something: [Build a contact form](../../recipes/contact-form/). 5. Keep your work: [Save a design](../save-design/) and [Publish a design](../publish/). --- title: Install project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/install/ updated: 2026-11-19T08:01:44.830Z --- # Install > Install UI Builder with Node.js and open it in your browser. You need [Node.js](https://nodejs.org) and Git on the computer or server. ## Install and start **1.** Get the code and open its folder: ```bash git clone https://github.com/totaljs/uibuilder.git cd uibuilder ``` **2.** Install the dependencies (once): ```bash npm install ``` **3.** Start UI Builder: ```bash npm start ``` **4.** Open `http://localhost:8000/` in your browser. You see the start screen with the templates. See [Start a new design](../start-a-design/). UI Builder keeps running until you stop it with Ctrl+C in the terminal. ## Use another port `npm start` uses port 8000. To use another port, start UI Builder with Node.js and pass the port: ```bash node index.js 8080 ``` ## Internet access The editor loads its libraries and its components from `cdn.componentator.com`. The browser that opens the editor needs internet access, and so does every page you publish. ## Next steps - Before other people use your installation, read [Run in production](../production/). - Learn where your work is kept: [Save a design](../save-design/). --- title: Start a new design project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/start-a-design/ updated: 2026-11-19T08:01:46.699Z --- # Start a new design > Pick a template on the start screen to begin a new design, or open a demo. When you open UI Builder, it shows the start screen. Every new design starts from a template. The template decides the kind of design and which components you get in the sidebar. ![The start screen with the Web app, Dashboard, Flowboard and Part templates](/files/JapWtG31N60f.webp) ## Start from a template **1.** Select a template: **Web app**, **Dashboard**, **Flowboard** or **Part**. **Mobile app** and **HMI panel** are greyed out and cannot be selected. **2.** The editor opens with the **Global settings** form. Type a **Name** for your design, for example `Demo project`, and select **SUBMIT**. The design is empty except for its main container. See [Templates](../templates/) for what each template gives you and [Global settings](../../reference/global-settings/) for the other fields of the form. ## Open a demo The line **Check out our demos** links to finished designs: **Dashboard**, **Flowboard**, **Controls** and **GPS**. Select one to open it in the editor and look at how it is built. ## Open a saved design To continue a design you saved before, drop its `.json` file on the start screen. See [Open a design](../open-design/). --- title: The editor project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/editor-overview/ updated: 2026-11-19T08:01:42.977Z --- # The editor > The parts of the UI Builder screen: toolbar, component list and canvas. The editor has three parts: the toolbar at the top, the component list on the left and the canvas in the middle. ![The editor with a contact form on the canvas](/files/JapWse2QN61f.webp) ## Toolbar ![The toolbar buttons on the left side](/files/JapWsf2RN60f.webp) From left to right: | Button | What it does | | --- | --- | | **SAVE** | Saves the design. See [Save a design](../save-design/). | | **Preview** (flask) | Sends the design to a render address and opens it in a new tab. See [Preview a design](../preview/). | | **Publish** (box) | Publishes the design as HTML or JSON. See [Publish a design](../publish/). | | **Global settings** (gear) | Name, editor settings and styles of the design. See [Global settings](../../reference/global-settings/). | | **Display settings** (window) | Shows the canvas at another screen size. See [Display sizes](../display-sizes/). | | **Inputs / Outputs** (branch) | Lists the inputs and outputs of the design. See [Inputs and outputs](../inputs-outputs/). | | **Re-load components** (circular arrows) | Builds the canvas again from the current design. | On the right side of the toolbar: | Button | What it does | | --- | --- | | **Replace source-code** | Replaces the design with a `.json` file. See [Open a design](../open-design/). | | **Edit source-code** (pencil) | Shows the design as JSON for editing. See [Edit the design source](../edit-design-source/). | | **Download source-code** | Copies or downloads the design as JSON. See [Save a design](../save-design/). | | **Documentation** (book) | Opens the online Total.js documentation of UI Builder. | Point at a button to see its name. ## Component list The left side lists the components of the design, grouped by kind, for example **Charts**, **Content** and **Controls**. Above the list are **Search components** and **Import components**. See [Add components](../add-components/) and [Import components](../import-components/). ## Canvas The canvas shows your design as it will look, with a small label above every container (for example **Container** or **Form**). You drop components here, double-click them to change their settings and right-click them for more actions. See [Component settings](../component-settings/) and [Arrange components](../arrange-components/). --- title: Add components project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/add-components/ updated: 2026-11-19T08:01:39.691Z --- # Add components > Find a component in the list and drag it onto the canvas. Components are the building blocks of a design: headlines, text boxes, buttons, charts, layouts and more. ## Add a component **1.** Find the component in the list on the left. **2.** Drag it onto the canvas and drop it inside a container, for example inside the main **Container** or inside a **Form**. The component appears where you drop it. If you drop it on another component, it goes right after that component. ## Find a component Type in **Search components** at the top of the list. The list shows only the components whose name matches. Select the **×** in the field to clear the search. ![The component list filtered by the word chart](/files/JapWs81zN60f.webp) ## Read about a component Select a component in the list to read a short description of it. Right-click it and choose **Read information** for the same text. ## Components that hold other components Layout components such as **Container**, **Columns**, **Panel**, **Tabs** and **Form** have an area with a border. Drop other components inside that area. A component dropped into a **Form** becomes part of that form. See [Build a contact form](../../recipes/contact-form/). ## Not in the list? The list shows the components that the design has. To add more from the component library, see [Import components](../import-components/). --- title: Component settings project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/component-settings/ updated: 2026-11-19T08:01:40.621Z --- # Component settings > Open the settings of a component on the canvas and change its name, value path and options. Every component on the canvas has settings: a name, where it reads its value from and options of its own. ## Open the settings Double-click the component on the canvas. You can also right-click it and choose **Settings**. ![The settings of a Textbox component](/files/JapWsI28N61f.webp) Change what you need and select **SUBMIT**. The canvas shows the change at once. ## Fields every component has - **Name.** The label of the component, for example `Email`. Text boxes show it above the field; containers show it in their small label. - **ID.** The identifier of this component in the design. You cannot change it. - **Read value from.** The path where the component reads and writes its value, for example `email`. A form collects the values of its components by these paths. See below. ## Set the value path Next to **Read value from** there are three links: - **Generate** creates a path from the name, for example `email` from `Email`. - **Clear** empties the field. - **Copy** copies the path to the clipboard. You can also type a path or pick one from the list. The list shows paths that other components already use, components you can link to (they start with `@`) and, when set up, paths from your own server. See [Editor addresses](../../reference/editor-addresses/). Pick a component (`@…`) when one component should show the data of another, for example a chart that shows the data of a **Data generator**. See [Show data in a line chart](../../recipes/line-chart/). ## Options of the component The rest of the form depends on the component. A **Textbox** has **Type**, **Default value**, **Placeholder**, **Required** and more. A **Form** has **Button label** and **Reset controls after send**. Select the component in the list on the left to read what it does. --- title: Edit text on the canvas project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/edit-text/ updated: 2026-11-19T08:01:42.263Z --- # Edit text on the canvas > Change the text of a headline or another text component straight on the canvas. Some components let you change their text right on the canvas, without opening the settings. The **Headline** component is one of them. ## Change the text **1.** Double-click the text on the canvas. A text cursor appears. **2.** Type the new text. **3.** Press Enter to finish. The new text is kept in the design and appears in the published page. --- title: Arrange components project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/arrange-components/ updated: 2026-11-19T08:01:39.981Z --- # Arrange components > Move, clone, space out and remove components with the context menu. Right-click a component on the canvas to open its menu. The first line is the type of the component. ![The context menu of a Textbox component](/files/JapWsB22N61f.webp) | Item | What it does | | --- | --- | | **Read information** | Shows the description of the component. | | **Settings** | Opens the settings. See [Component settings](../component-settings/). | | **Toggle gap** | Adds or removes the space below the component. | | **Move up** / **Move down** | Moves the component one place up or down in its container. | | **Clone** | Puts a copy of the component, with its settings and content, right after it. | | **Copy** | Copies the component to the clipboard. See [Copy and paste components](../copy-paste/). | | **Paste to …** | Pastes a copied component into the container named in the item. | | **Export to component** | Turns the component and its content into a new component. See [Export to component](../export-to-component/). | | **Remove** | Removes the component and everything inside it. | **Remove** acts at once, without asking. To undo it, open the last saved design again. ## Move by dragging You can also drag a component on the canvas and drop it in another place or inside another container. ## Floating components Some components float on the canvas instead of sitting in a container, for example the markers of a [Flowboard](../flowboard/). Their menu has **Bring to front** and **Bring to back** instead of **Toggle gap**. --- title: Copy and paste components project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/copy-paste/ updated: 2026-11-19T08:01:40.970Z --- # Copy and paste components > Copy a component and paste it into a container, in the same design or in another one. **Copy** puts a component, with everything inside it, on the clipboard as a line of text that starts with `uibuilder://copy`. You can paste it into any container, in this design or in a design open in another browser tab or another UI Builder installation. ## Copy a component Right-click the component on the canvas and choose **Copy**. The editor shows **The component has been copied to the clipboard.** ## Paste a component **1.** Right-click a component inside the container where the copy should go, and choose **Paste to** followed by the container name, for example **Paste to Container**. **2.** In **Paste component**, paste the copied text into **Paste from the clipboard**. ![The Paste component form](/files/JapWsL2BN60f.webp) **3.** Select **IMPORT**. The component appears at the end of the container. If it uses a component that the design does not have yet, the editor adds that component to the list too. ## Clone instead To repeat a component in the same container, **Clone** is quicker: it puts the copy right after the original. See [Arrange components](../arrange-components/). --- title: Display sizes project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/display-sizes/ updated: 2026-11-19T08:01:41.812Z --- # Display sizes > Check how your design looks on phones, tablets and large screens. The **Display settings** button (window icon) shows the canvas at another screen size, so you can check your design for small screens. ![The Display settings menu](/files/JapWsS2HN60f.webp) ## Change the size Select **Display settings** and choose: - **Extra small display** (phone) - **Small display** (tablet) - **Medium display** (laptop) - **Large display** (desktop) - **Current browser**: the full width of your browser window The canvas shrinks to the chosen width inside a frame, and the button shows the icon of that size. ![The contact form shown at the small display size](/files/JapWsU2IN61f.webp) Choose **Current browser** to go back to the normal view. The size only changes the view in the editor; it is not saved in the design. ## Components with sizes Some components have settings for each size. **Columns**, for example, has **Count** for all display types and **Count (MD)**, **Count (SM)** and **Count (XS)** for medium, small and extra small displays. --- title: Inputs and outputs project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/inputs-outputs/ updated: 2026-11-19T08:01:44.830Z --- # Inputs and outputs > See the inputs and outputs that the components of a design offer to the app that shows it. Some components give the design inputs and outputs. An app that shows your published design uses them to send data into the design and to receive data from it. A **Form**, for example, has the output **Submit**, which carries the values of the form when someone sends it. UI Builder creates the inputs and outputs from the components. You do not add them by hand. ## See the list Select **Inputs / Outputs** (branch icon) in the toolbar. ![The list of inputs and outputs of a design with a form](/files/JapWsy2hN60f.webp) Each line shows the component (for example **Form**), the name (for example **Load data**) and the **ID**. Give the IDs to the developer of the app that shows the design. The form in this example has: - Inputs **Load data**, **Load partial data**, **Reset** and **Clear**. - Output **Submit**. If the design has none, the list says **The template doesn't contain any inputs** or **The template doesn't contain any outputs**. Select **Close** to go back. --- title: Save a design project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/save-design/ updated: 2026-11-19T08:01:46.338Z --- # Save a design > Save your design to a JSON file, or send it to your own server. UI Builder does not keep designs on the server. Save your design often: if you close or reload the tab, unsaved work is lost. ## Save to a file Select **SAVE** in the toolbar, or press Ctrl+S (Cmd+S on a Mac). The browser downloads the design as `_editor.json`, for example `Demo project_editor.json`. This file holds everything: the components, their settings, your content and the global settings. Open it again to keep working. See [Open a design](../open-design/). ## Copy or download the source **Download source-code** on the right side of the toolbar offers two choices: ![The Download source-code menu](/files/JapWtD2yN61f.webp) - **Copy to clipboard** copies the design JSON. - **Download** downloads the same `_editor.json` file as **SAVE**. ## Save to your own server When **URL address for saving data** is set in [Global settings](../../reference/global-settings/), **SAVE** asks **Are you sure you want to save design?**. Select **SAVE** to send the design to that address. The editor shows **Done, saved!**. With **Auto publish after saving the design** turned on, the editor also publishes the design after saving it. See [Editor addresses](../../reference/editor-addresses/). --- title: Open a design project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/open-design/ updated: 2026-11-19T08:01:44.830Z --- # Open a design > Open a saved design file again, replace the current design, or open a design from an address. A saved design is a `_editor.json` file. There are three ways to open it. ## Drop the file Drag the `.json` file from your computer and drop it on the start screen or on the editor. The editor shows the design. ## Replace the current design **1.** Select **Replace source-code** on the right side of the toolbar. **2.** Choose the `.json` file. The editor removes the current design and shows the one from the file. Save the current design first if you want to keep it. ## Open from an address Add `?url=` and the address of the design file to the address of UI Builder: ```text http://localhost:8000/?url=https://www.example.com/designs/demo.json ``` The editor loads the file and opens it. If it cannot load the file, it shows a warning and the start screen. A file on another server must allow requests from the address of UI Builder (CORS). See [URL parameters](../../reference/url-parameters/). --- title: Edit the design source project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/edit-design-source/ updated: 2026-11-19T08:01:42.263Z --- # Edit the design source > Change the design straight in its JSON source. The whole design is a JSON document. **Edit source-code** (pencil) on the right side of the toolbar opens it in a code editor. ![The design source in the Edit source-code form](/files/JapWsY2LN60f.webp) ## Edit the source **1.** Select **Edit source-code**. **2.** Change the JSON, for example the `name` of the design or the text of a component. **3.** Select **SUBMIT**. The editor builds the design again from the new source. If the JSON is not valid, nothing changes. The fields of the file are described in [Design files](../../reference/design-files/). Save the design first: a mistake in the source can remove components. See [Save a design](../save-design/). --- title: Publish a design project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/publish/ updated: 2026-11-19T08:01:46.040Z --- # Publish a design > Publish a finished design as a standalone HTML page or as a JSON file. Publishing turns your design into its final form. The published design has no editor settings and uses the render version of each component. ## Publish to a file **1.** Select **Publish** (box icon) in the toolbar. ![The Publish menu](/files/JapWt82uN61f.webp) **2.** Choose one: - **Download HTML** downloads `_render.html`, a complete web page with your design. - **Download JSON** downloads `_render.json`, the published design for an app that shows UI Builder designs. **3.** Confirm **Are you sure you want to publish current design?** with **PUBLISH**. ## Use the HTML page Open the `_render.html` file in a browser to see your design as visitors will see it. Put the file on any web server to share it. The page loads its libraries and components from the internet. ![A published contact form in the browser](/files/JapWtA2vN60f.webp) Keep your `_editor.json` file too: you cannot open a `_render` file in the editor to keep working. See [Design files](../../reference/design-files/). ## Publish to your own server When **URL address for publishing data** is set in [Global settings](../../reference/global-settings/), **Publish** asks for confirmation and sends the published design to that address instead of showing the menu. The editor shows **Done, published!**. With **Auto publish after saving the design** turned on, the **Publish** button is hidden: the editor publishes after every save to your server. See [Editor addresses](../../reference/editor-addresses/). --- title: Preview a design project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/preview/ updated: 2026-11-19T08:01:44.830Z --- # Preview a design > Open a preview of the design in a new tab through a render address. **Preview** (flask icon) in the toolbar sends the published version of your design to a render address, which opens it in a new browser tab. ## Where the preview goes - If **URL address for rendering data** is set in [Global settings](../../reference/global-settings/), the design goes to that address. Your server receives it as the form field `data` and answers with the page to show. - If it is empty, the design goes to the online Total.js preview service at `https://preview.totaljs.com`. The preview uses **CSS for preview** from Global settings when it is set. ## Check a design without sending it If your design must not leave your computer, do not use **Preview** without your own render address. Publish the design with **Download HTML** and open the file in your browser instead. See [Publish a design](../publish/). --- title: Import components project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/import-components/ updated: 2026-11-19T08:01:44.135Z --- # Import components > Add components from the component library to your design. The component list on the left shows the components of the current design. Templates such as **Part** start with only a few. Import more from the component library. ## Import from the library **1.** Select **Import components** at the top of the component list, and then **Import components** in the menu. ![The Import components menu](/files/JapWsp2aN61f.webp) **2.** The **Import components** window lists the library by group. Components that the design has already are shown in colour. ![The Import components window](/files/JapWsr2bN60f.webp) **3.** Select a component. Confirm with **Import**. **4.** Select **Close**. The new components appear in the list on the left. Select **Read me** on a component to read about it before you import it. Type in **Search components** to find one by name. ## Import without confirming Clear **Warn about component installation** to import a component with one click, without the confirmation. ## The library The library is the official collection of UI Builder components. Its source is on GitHub: [totaljs/uibuildercomponents](https://github.com/totaljs/uibuildercomponents). To use your own library instead, see [Use your own component library](../../recipes/own-component-library/). ## Other ways to add components - [Import a custom component](../import-custom-component/) from an address. - [Create a component](../create-component/) in the editor. - [Export to component](../export-to-component/) from components on the canvas. --- title: Import a custom component project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/import-custom-component/ updated: 2026-11-19T08:01:44.486Z --- # Import a custom component > Add a component from an editor.html address, a component list or an exported component code. **Import custom** adds a component that is not in the library, for example one made by your team. ## Import a component **1.** Select **Import components** at the top of the component list, and then **Import custom**. **2.** In **URL address**, enter one of these: - the address of a component's `editor.html` file, for example `https://www.example.com/components/greeting/editor.html`; - the address of a JSON file with a list of `editor.html` addresses, to import them all at once; - an exported component code that starts with `uibuilder://component`. ![The Import UI component form](/files/JapWsu2eN61f.webp) **3.** Select **IMPORT**. The editor shows **The component has been imported successfully.** and the component appears in the list, in its own group. If the address does not hold a component, the editor shows **Invalid component content**. A file on another server must allow requests from the address of UI Builder (CORS). ## Import from a file You can also drop a component's `.html` file from your computer on the editor. The component appears in the list. ## Where to get exported codes **Export** in the component list menu and **Export** in **Export to component** copy a `uibuilder://component` code. See [Manage the component list](../component-list/). --- title: Create a component project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/create-component/ updated: 2026-11-19T08:01:41.353Z --- # Create a component > Write a new component in the built-in code editor. **Create** opens a code editor with the source of a small sample component, a clock. You change it into your own component. ![The Edit source-code form with the sample component](/files/JapWsP2EN61f.webp) ## Create a component **1.** Select **Import components** at the top of the component list, and then **Create**. **2.** Change the source. The lines at the top set how the component appears in the list: - `exports.name`: the name, for example `'Clock'`; - `exports.group`: the group in the list, for example `'Controls'`; - `exports.icon`: the icon, for example `'ti ti-clock'`. **3.** Select **SUBMIT**. The component appears in the list under its group. Drag it onto the canvas like any other component. The component is saved inside your design file. To use it in another design, export it. See [Manage the component list](../component-list/). Writing component code needs JavaScript. The [official components](https://github.com/totaljs/uibuildercomponents) are good examples. --- title: Export to component project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/export-to-component/ updated: 2026-11-19T08:01:43.273Z --- # Export to component > Turn a group of components on the canvas into a new reusable component. **Export to component** turns a component on the canvas, with everything inside it, into a new component in the list. Use it for parts you build again and again, such as an address block or a contact form. ## Export **1.** Right-click the component on the canvas (for example a **Form**) and choose **Export to component**. **2.** Fill in the form: - **Name**, for example `Contact form`; - **Group**: the group in the component list (**Entities** by default); - **Author** (optional); - **Icon**. ![The Export to component form](/files/JapWsi2UN61f.webp) **3.** Select **Create**. The new component appears in the list under its group. When you drop it on the canvas, it brings all the components it was made from, with their settings. ## Take it to another design In the same form: - **Download** saves the component as an `.html` file. Drop that file on another design to add it. - **Export** copies a `uibuilder://component` code. Paste it in **Import custom** in another design. See [Import a custom component](../import-custom-component/). --- title: Manage the component list project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/component-list/ updated: 2026-11-19T08:01:40.275Z --- # Manage the component list > Read, edit, export, download or remove the components in the list. Right-click a component in the list on the left to open its menu. ![The menu of a component in the list](/files/JapWsE25N60f.webp) | Item | What it does | | --- | --- | | **Read information** | Shows the description of the component. | | **Edit source-code** | Opens the component source in the code editor. Select **SUBMIT** to apply your changes. | | **Export** | Copies a `uibuilder://component` code for **Import custom** in another design. | | **Download source-code** | Downloads the component source as `.html`. | | **Remove** | Removes the component from the list, after you confirm. | Components from the template's standard set show only **Read information** and **Download source-code**. The other items appear for components you imported one by one, created or exported. ## Remove a component **1.** Right-click the component in the list and choose **Remove**. **2.** Confirm **Are you sure you want to remove … component?** with **Remove**. Some components are protected because the design needs them. The editor then shows **This component is protected, it can't be removed.** ## Reload the components **Re-load components** (circular arrows) in the toolbar builds the canvas again with the current components. Use it after you change a component's source outside the editor. --- title: Templates project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/templates/ updated: 2026-11-19T08:01:46.699Z --- # Templates > What each start template gives you: Web app, Dashboard, Flowboard and Part. Every design starts from a template on the start screen. The template sets the type of the design, its starting layout, its styles and the components in the list. The type is shown in **App type** in [Global settings](../../reference/global-settings/) and cannot be changed. ## Web app A centred page up to 900 pixels wide with one **Container**. It comes with the full component set: charts, content, controls, data, layouts, lists and more. Use it for forms and app screens. See [Build a contact form](../../recipes/contact-form/). ## Dashboard A wide page up to 1600 pixels with a **Container** that holds a **Columns** layout. It has the same components as **Web app**. Use it for charts and values. See [Show data in a line chart](../../recipes/line-chart/). ## Flowboard A floor plan with markers that you place freely on it. Its list has only the **Marker** component. See [Flowboard](../flowboard/). ## Part A small piece of a form that other designs can reuse, built in a **Part container**. It starts with a short list: **Gap**, **Checkbox**, **Textarea**, **Textbox**, **Columns**, **Enable editing** and **Show components**. Import more with [Import components](../import-components/). ## Mobile app and HMI panel These two templates are shown on the start screen but are greyed out and cannot be selected. --- title: Flowboard project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/flowboard/ updated: 2026-11-19T08:01:43.612Z --- # Flowboard > Put a floor plan image on the canvas and place markers on it. A Flowboard design is a floor plan: an image of a building, a room or a machine, with markers placed on it. Each marker shows an icon and a value. ![A Flowboard with a floor plan and a marker](/files/JapWsm2XN60f.webp) ## Before you start The floor plan image is uploaded to your own server. Set **URL address for uploading files** in [Global settings](../../reference/global-settings/) first. See [Editor addresses](../../reference/editor-addresses/) for what that address must answer. ## Build a flowboard **1.** On the start screen, select **Flowboard**, type a **Name** and select **SUBMIT**. **2.** Select **Upload new plan** and choose the image. It appears on the canvas. **3.** Drag **Marker** from the list onto the canvas, to the place where it belongs. Markers float: you can put them anywhere. **4.** Double-click a marker to open its settings. Right-click a marker for **Bring to front** and **Bring to back** when markers overlap. See [Arrange components](../arrange-components/). --- title: Run in production project: UI Builder version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/guides/production/ updated: 2026-11-19T08:01:45.600Z --- # Run in production > Run UI Builder on a server for other people, safely. UI Builder is a small Total.js app that serves the editor. It has no sign-in, keeps no designs and has no settings to protect, but anyone who can open its address can use it. ## Start in release mode Start UI Builder with `--release` on a server: ```bash node index.js 8000 --release ``` Keep it running with a process manager or a system service of your choice. ## Keep it safe - Put UI Builder behind a reverse proxy, such as Nginx, and use HTTPS. - If only your team should use it, restrict access to its address, for example with the proxy or a firewall. - Designs are files on the computers of the people who use the editor. Ask them to keep their `_editor.json` files, or set a save address. See [Save a design](../save-design/). - **Preview** without a render address sends the design to the online Total.js preview service. See [Preview a design](../preview/). ## Update Get the new code, install the dependencies and start UI Builder again: ```bash git pull npm install node index.js 8000 --release ``` --- title: Global settings project: UI Builder version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/reference/global-settings/ updated: 2026-11-19T08:01:48.768Z --- # Global settings > Every field of the Global settings form of a design. **Global settings** (gear icon in the toolbar) holds the details of the whole design. The form also opens when you start a new design. Select **SUBMIT** to apply your changes. ![The top of the Global settings form](/files/JapWtb3LN60f.webp) ## Design details | Field | Meaning | | --- | --- | | **Name** | The name of the design. Required. It names the saved files, for example `Demo project_editor.json`, and the title of a published HTML page. | | **App type** | The type set by the template, for example `app` or `dashboard`. Read only. | | **Version** | Your version number of the design, for example `0.0.1`. | | **Description** | A short description. | | **Group** | A group name of your choice. | | **Author** | Who made the design. | | **Reference** | A free reference of your choice, for example an ID in your own system. | | **Icon** | An icon for the design. | | **Color** | A colour for the design. | | **Dynamic arguments** | Key and value pairs saved with the design. Type a **Key**, then a value, and press Enter. Components can read them. | ## Editor settings **Settings for the editor will be removed from the compiled design.** These fields only affect the editor; the published design does not include them. | Field | Meaning | | --- | --- | | **Use local components** | The published design names its components without their source. Use it only when the app that shows the design provides the components itself. | | **Download components' to the source in compiling** | The published design includes the source of every component it uses, so it does not load them from their addresses. Hidden while **Use local components** is on. | | **Auto publish after saving the design** | Publishes the design every time you save it to your server. The **Publish** button is then hidden. | | **URL address for obtaining paths** | See [Editor addresses](../editor-addresses/). | | **URL address for obtaining codes** | See [Editor addresses](../editor-addresses/). | | **URL address for obtaining data views** | See [Editor addresses](../editor-addresses/). | | **URL address for obtaining list of UI designs** | See [Editor addresses](../editor-addresses/). | | **URL address for uploading files** | See [Editor addresses](../editor-addresses/). | | **URL address for saving data** | Where **SAVE** sends the design. | | **URL address for publishing data** | Where **Publish** sends the published design. | | **URL address for rendering data** | Where **Preview** sends the design. | ## Styles | Field | Meaning | | --- | --- | | **CSS for editor** | Styles of the design. In the absence of a declaration for other modes, these styles are used as defaults. | | **CSS for publishing** | Styles of the published design, if they differ. | | **CSS for preview** | Styles of the preview, if they differ. | The templates fill **CSS for editor** with their layout, for example the width of the page. In the styles, `.CLASS` stands for the design itself. --- title: Editor addresses project: UI Builder version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/reference/editor-addresses/ updated: 2026-11-19T08:01:48.402Z --- # Editor addresses > The addresses in Global settings that connect the editor to your own server, and what each must answer. The address fields in [Global settings](../global-settings/) connect the editor to your own server. The browser calls them directly, so a server on another address must allow requests from the address of UI Builder (CORS). ![The address fields of the Global settings form](/files/JapWtY3IN61f.webp) ## Lists the editor reads The editor reads these addresses with a `GET` request. Each must answer a JSON array. | Field | Answer | Used for | | --- | --- | --- | | **URL address for obtaining paths** | `[{ id: String, name: String, type: String }]` | Extra entries in **Read value from** of every component. `id` is the path, `name` the text shown, `type` a short tag. | | **URL address for obtaining codes** | `[{ id: String, name: String }]` | Code lists that components can choose from. | | **URL address for obtaining data views** | `[{ id: String, name: String, type: String }]` | Data views that components can choose from. | | **URL address for obtaining list of UI designs** | `[{ id: String, name: String }]` | Other designs that components can refer to. | Example answer for paths: ```json [ { "id": "user.name", "name": "User name", "type": "string" }, { "id": "user.email", "name": "User email", "type": "email" } ] ``` ## Upload **URL address for uploading files** receives files with a `POST` request (`multipart/form-data`), for example the floor plan of a [Flowboard](../../guides/flowboard/). It must answer: ```json [ { "id": "plan1", "name": "plan.png", "url": "https://www.example.com/files/plan.png", "size": 1000, "ext": "png" } ] ``` ## Save, publish and render These three receive the design with a `POST` request. The body is URL encoded, with one field `data` that holds the design as JSON. | Field | Sent by | Content of `data` | | --- | --- | --- | | **URL address for saving data** | **SAVE** | The editable design, like `_editor.json`. | | **URL address for publishing data** | **Publish** | The published design, like `_render.json`. | | **URL address for rendering data** | **Preview** | The published design. The browser opens the answer in a new tab. | For save and publish, answer with a JSON object such as `{"success":true}`. --- title: URL parameters project: UI Builder version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/reference/url-parameters/ updated: 2026-11-19T08:01:48.768Z --- # URL parameters > Parameters you can add to the address of UI Builder to open a design or use your own lists. Add these parameters to the address of UI Builder, for example `http://localhost:8000/?url=...`. Files on another server must allow requests from the address of UI Builder (CORS). | Parameter | What it does | | --- | --- | | `url` | Opens the design file at this address instead of the start screen. | | `templates` | Uses your own list of templates on the start screen. The demo links are then hidden. | | `components` | Uses your own component library in **Import components**. | ## Open a design ```text http://localhost:8000/?url=https://www.example.com/designs/demo.json ``` ## Your own templates The file is a JSON array. Each item has an `id`, a `name`, an `image` shown on the start screen and the address of a `template` design file: ```json [ { "id": "app", "name": "Demo project", "image": "/img/app.png", "template": "/templates/app.json" } ] ``` Add `"disabled": true` to show an item greyed out. A template file is a design file like `_editor.json`. ## Your own component library See [Use your own component library](../../recipes/own-component-library/). ## Combine parameters Join parameters with `&`: ```text http://localhost:8000/?templates=/demo/templates.json&components=/demo/components.json ``` --- title: Design files project: UI Builder version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/reference/design-files/ updated: 2026-11-19T08:01:47.531Z --- # Design files > The files UI Builder creates: the editable design and the published design. UI Builder works with two kinds of files. | File | Made by | Use | | --- | --- | --- | | `_editor.json` | **SAVE**, **Download source-code** | The editable design. Open it again in the editor. | | `_render.json` | **Publish** > **Download JSON** | The published design, for an app that shows UI Builder designs. | | `_render.html` | **Publish** > **Download HTML** | A web page that shows the published design. | Only the `_editor.json` file opens in the editor for more work. Keep it. ## Main fields of a design | Field | Meaning | | --- | --- | | `name`, `description`, `icon`, `version`, `author`, `group` | The details from [Global settings](../global-settings/). | | `type` | The type set by the template, for example `app`. | | `css` | The styles of the design. | | `editor` | The editor settings and addresses. Not in the published design. | | `components` | The components the design uses: an address or the component source. | | `children` | The components on the canvas, with their settings, in order. | | `inputs`, `outputs` | The inputs and outputs. See [Inputs and outputs](../../guides/inputs-outputs/). | | `args` | The **Dynamic arguments**. | In the published design, `components` points to the render version of each component, or holds its source when **Download components' to the source in compiling** is on. To change these fields in the editor, see [Edit the design source](../../guides/edit-design-source/). --- title: Component groups project: UI Builder version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/reference/component-groups/ updated: 2026-11-19T08:01:47.531Z --- # Component groups > The groups of the standard component set of the Web app and Dashboard templates. The **Web app** and **Dashboard** templates start with the standard component set. The list on the left shows it in these groups: | Group | Components | | --- | --- | | **Charts** | Bar chart, Column chart, Donut chart, Line chart, Pie chart | | **Content** | Accordion, Callout, Comment, External image, Gap, Headline, Horizontal rule, HTML, Image, Info card, Listbox, Panel, Paragraph, Rating, Style box, Tabs, Video | | **Controls** | Button, Calendar, Checkbox, Checkboxlist, Color, Dropdown, Hidden value, Icon, Map, Progress bar, Radio button, Rich text editor, Slider, Textarea, Textbox, Toggle button, Toggle group, Toolbar | | **Dashboard** | Last value | | **Data** | Capture output, Data generator, Data reader, Data source, Data transformer, Data view, Dynamic source, Form, GPS, Input, Read value, Redirect, REST Reader, Scope, Send to input, WebSocket receiver | | **Debugging** | To JSON | | **Files** | File uploader | | **Flow** | Flow Input, Flow Output | | **Layouts** | Columns, Container, Display, Hidden container, Variable container | | **List** | Cards, DataGrid, Listview | | **Logical** | Counter, Enable editing, Play sound, Show components | | **Parts** | Part | | **Special** | Link | The components come from the online component library, so the set can grow. Select a component in the list to read what it does. To add components from the library, see [Import components](../../guides/import-components/). --- title: Build a contact form project: UI Builder version: 1.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/recipes/contact-form/ updated: 2026-11-19T08:01:46.699Z --- # Build a contact form > Build a contact form with required fields and publish it as a web page. This recipe builds a form with a name, an email address and a message, and publishes it as a web page. ## Build the form **1.** On the start screen, select **Web app**. Type `Demo project` in **Name** and select **SUBMIT**. **2.** Drag **Headline** into the **Container**. Double-click its text and type `Contact us`. **3.** Drag **Form** under the headline. Double-click the form's label, set **Name** to `Contact` and **Button label** to `SEND`, and select **SUBMIT**. **4.** Drag **Textbox** into the form. In its settings: - **Name**: `Name` - **Read value from**: select **Generate** (it gives `name`) - **Placeholder**: `Jane Doe` - turn on **Required** **5.** Drag another **Textbox** under the first one. Set **Name** to `Email`, generate the path (`email`), set **Type** to **Email**, **Placeholder** to `jane@example.com` and turn on **Required**. **6.** Drag **Textarea** under it. Set **Name** to `Message` and generate the path (`message`). ![The contact form in the editor](/files/JapWse2QN61f.webp) ## Publish it **1.** Select **SAVE** to keep the editable design. **2.** Select **Publish**, then **Download HTML**, and confirm with **PUBLISH**. **3.** Open `Demo project_render.html` in your browser. The **SEND** button stays disabled until **Name** and a valid **Email** are filled in. ![The published contact form, filled in](/files/JapWtA2vN60f.webp) ## Where the data goes When someone selects **SEND**, the form sends its values through its output **Submit**, for example: ```json { "name": "Jane Doe", "email": "jane@example.com", "message": "Hello from Demo project." } ``` The app that shows the design receives this output. Give its ID to the app's developer: you find it in [Inputs and outputs](../../guides/inputs-outputs/). --- title: Show data in a line chart project: UI Builder version: 1.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/recipes/line-chart/ updated: 2026-11-19T08:01:47.531Z --- # Show data in a line chart > Feed a line chart with sample data from a Data generator on a dashboard. This recipe puts a line chart on a dashboard and fills it with sample data, so you can see the chart before real data is connected. ## Build the dashboard **1.** On the start screen, select **Dashboard**. Type `Demo project` in **Name** and select **SUBMIT**. **2.** Right-click the **Columns** label and choose **Remove**: this example does not need columns. **3.** Drag **Data generator** into the **Container**. Open its settings, set **Name** to `Visitors data` and type this data in the code editor: ```json [ { "name": "Visitors", "unit": "visits", "data": [ { "x": "2026-11-01", "y": 120 }, { "x": "2026-11-02", "y": 180 }, { "x": "2026-11-03", "y": 150 }, { "x": "2026-11-04", "y": 210 }, { "x": "2026-11-05", "y": 240 } ] } ] ``` Select **SUBMIT**. **4.** Drag **Line chart** under the data generator. Open its settings, set **Name** to `Visitors` and, in **Read value from**, pick the **Visitors data** component. Select **SUBMIT**. In the editor, the chart shows a grey sample shape. ![The data generator and the line chart in the editor](/files/JapWtN38N61f.webp) ## See the chart Select **Publish**, then **Download HTML**, confirm with **PUBLISH** and open the downloaded file. The chart draws your data. ![The published line chart with the sample data](/files/JapWtP39N60f.webp) ## The data format A line chart reads a list of series. Each series has a `name`, a list `data` of points with `x` (a date) and `y` (a number), and optionally a `unit` and `decimals`. Other chart components describe their format in **Read information**. When your real data is ready, replace the **Data generator** with a component that reads it, for example **REST Reader**, and point the chart to it. --- title: Use your own component library project: UI Builder version: 1.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/recipes/own-component-library/ updated: 2026-11-19T08:01:47.531Z --- # Use your own component library > Show your team's own components in the Import components window. **Import components** shows the official library. You can show your own list of components instead, for example the components of your team. ## Make the list Create a JSON file with one item per component. Each item needs `id`, `name`, `group` and `url`, the address of the component's `editor.html` file: ```json [ { "id": "greeting", "name": "Greeting", "group": "Demo", "url": "https://www.example.com/components/greeting/editor.html", "author": "Jane Doe", "icon": "ti ti-hand-wave", "version": "1", "readme": "Shows a short greeting." } ] ``` `author`, `icon`, `version` and `readme` are optional. `readme` is the text of **Read me**. Put the list and the component files on a web server that allows requests from the address of UI Builder (CORS). ## Open UI Builder with your list Add `?components=` and the address of the list to the address of UI Builder: ```text http://localhost:8000/?components=https://www.example.com/components/list.json ``` Start or open a design and select **Import components** > **Import components**. The window shows your components, grouped by `group`. Import them as described in [Import components](../../guides/import-components/). ## Import a whole list at once **Import custom** also accepts the address of a simpler file: a JSON array of `editor.html` addresses. The editor imports every component in it. ```json [ "https://www.example.com/components/greeting/editor.html" ] ``` See [Import a custom component](../../guides/import-custom-component/). --- title: General questions project: UI Builder version: 1.0 section: faq language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/faq/general/ updated: 2026-11-19T08:01:35.600Z --- # General questions > Answers about where designs are kept, accounts and internet access. ## Where are my designs stored? In files on your computer. UI Builder keeps nothing on the server. Select **SAVE** to download the design as `_editor.json`, or set a save address to send it to your own server. See [Save a design](../../guides/save-design/). ## I reloaded the page and my design is gone. Can I get it back? Only from a file you saved. Open the last `_editor.json` file again. See [Open a design](../../guides/open-design/). ## Do I need an account? No. UI Builder has no sign-in. Anyone who can open its address can use it. See [Run in production](../../guides/production/). ## Does it work without internet? No. The editor, its components and published pages load files from `cdn.componentator.com`. ## Why can't I select Mobile app or HMI panel? These templates are shown greyed out on the start screen and cannot be selected. Use **Web app** or **Dashboard**. See [Templates](../../guides/templates/). --- title: Publishing questions project: UI Builder version: 1.0 section: faq language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/faq/publishing/ updated: 2026-11-19T08:01:35.600Z --- # Publishing questions > Answers about published pages, previews and using a design in other apps. ## What is the difference between SAVE and Publish? **SAVE** keeps the editable design (`_editor.json`) that you open again in the editor. **Publish** makes the final version (`_render.html` or `_render.json`) for visitors or for another app. Keep both. See [Design files](../../reference/design-files/). ## How do I put my design on a website? Publish it with **Download HTML** and upload the file to your web server. See [Publish a design](../../guides/publish/). ## Does Preview send my design somewhere? Yes. Without your own render address, **Preview** sends the design to the online Total.js preview service. To check a design privately, publish it as HTML and open the file. See [Preview a design](../../guides/preview/). ## My published form does nothing when I select its button. Why? The form sends its data through its output. The page on its own does not store or send it anywhere; the app that shows the design must receive the output. See [Inputs and outputs](../../guides/inputs-outputs/). ## Can I open a published file in the editor? No. Open the `_editor.json` file instead. --- title: Official components project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/introduction/ updated: 2026-11-19T11:55:56.259Z --- # Official components > Where the official components come from, how they are versioned and how to read this catalogue. The official components are the building blocks that Total.js publishes for UI Builder: fields, texts, layouts, charts, lists and components that work with data. This section lists the components of the official catalogue by their groups in the **Import components** window; small groups share a page. ## Where the components come from Each component is a folder in the GitHub repository [totaljs/uibuildercomponents](https://github.com/totaljs/uibuildercomponents), in the `components` folder. The folder holds up to three files: | File | What it holds | |---|---| | `editor.html` | The look of the component on the canvas, its details (name, group, icon, version) and its readme. | | `render.html` | The code that runs in a published design. | | `settings.html` | The settings form of the component. | The repository also holds `db.json`, the catalogue: one entry for each component with its id, name, group, author, icon, version, readme and the address of its `editor.html`. The files and the catalogue are published at: ```text https://cdn.componentator.com/uibuilder/db.json https://cdn.componentator.com/uibuilder//editor.html ``` UI Builder reads the catalogue from that address. Your browser loads the catalogue and the components from the internet, so you need internet access to use them. ## Add components to a design - The **Web app** and **Dashboard** templates start with the standard set of components. See [Component groups](/uibuilder/1-0/reference/component-groups/). - **Import components** at the top of the component list opens the catalogue. Components that the design has already are shown in colour. See [Import components](/uibuilder/1-0/guides/import-components/). - **Read me** in that window shows the readme of a component, the same text as in this section. Some components are offered only for some kinds of design. **Floor plan** and **Marker**, for example, appear only in a Flowboard design. ## Versions Every component has its own version number. It belongs to the component, not to UI Builder, and it goes up when the component changes. Each entry in this section shows the folder name and the version of the component. ## How to read an entry | Part | What it tells you | |---|---| | Name and folder | The name in the editor, the folder in the repository and its version. | | Inputs and outputs | What the component offers to the app that shows the design. See [Inputs and outputs](/uibuilder/1-0/guides/inputs-outputs/). | | Notes | Where the component is offered, whether it loads an external library, and whether other components can follow it. | | Readme | The description from the author. | | Parameters | The main settings: the key in the configuration, its default value and the field in the settings form. | Every component also has the fields **Name** and **Read value from**. See [Component settings](/uibuilder/1-0/guides/component-settings/). Some components work with your own server, for example **REST Reader**, **Data view**, **File uploader** and **WebSocket receiver**. Their settings ask for its address. ## Write your own To build components of your own, or to offer a catalogue to your team, see [Develop components](../../development/introduction/). --- title: Controls project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/controls/ updated: 2026-11-20T06:51:57.969Z --- # Controls > Fields, buttons and pickers that read input from the user. Fields, buttons and pickers that read input from the user. This page holds the catalogue group **Controls**. ![Textbox, Checkbox, Toggle button, Dropdown, Slider, Rating and Progress bar in a published design](/files/Jaq7Ic2qs61f.webp) 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### button · version 1 Type: `component` A button that sends data to an input of the design when clicked. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `input` | `String` | no | | **Input** in the settings form. An input of the design. | | `type` | `String` | no | `primary` | **Type** in the settings form. One of `primary` (Primary), `secondary` (Secondary), `outline` (Outline). | | `size` | `String` | no | `md` | **Size** in the settings form. One of `lg` (Large), `md` (Medium), `sm` (Small). | | `icon` | `String` | no | `ti ti-angle-right` | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `fullwidth` | `Boolean` | no | `false` | **Full width** in the settings form. | | `fullwidthxs` | `Boolean` | no | `true` | **Full width XS** in the settings form. | | `bold` | `Boolean` | no | `false` | **Bold** in the settings form. | | `radius` | `Boolean` | no | `true` | **Apply border radius** in the settings form. | | `shadow` | `Boolean` | no | `false` | **Apply shadow** in the settings form. | **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. ### calendar · version 1 Type: `component` Lets the user pick a date in a calendar. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `bg` | `Boolean` | no | `false` | **Apply background** in the settings form. | | `border` | `Boolean` | no | `false` | **Apply border** in the settings form. | | `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. | | `shadow` | `Boolean` | no | `false` | **Drop shadow** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **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. ### checkbox · version 1 Type: `component` A checkbox with the value true or false. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `reverse` | `Boolean` | no | `false` | **Reverse value** in the settings form. | | `default` | `Boolean` | no | `false` | **Default value** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component that switches between two states: `true`/`false` ### checkboxlist · version 1 Type: `component` A list of checkboxes built from a data source or your own items. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Data source** in the settings form. A component (`@id`), a code list or a data view. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `hidelabel` | `Boolean` | no | `false` | **Hide label** in the settings form. | | `items` | `Array` | no | `[]` | Your own list of items, edited in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. __Checkboxlist data-source needs to contain__: ```js [ { id: 1, name: 'Ruby' }, { id: 2, name: 'PHP' }, { id: 3, name: 'node.js' }, { id: 4, name: 'Python', } ] ``` ### color · version 1 Type: `component` Lets the user pick a colour. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `help` | `String` | no | | **Help message** in the settings form. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component allows selecting a color from the offered list. ### dropdown · version 1 Type: `component` A list to choose one item from a data source or your own items. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Data source** in the settings form. A component (`@id`), a code list or a data view. | | `placeholder` | `String` | no | | **Placeholder** in the settings form. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `hidelabel` | `Boolean` | no | | **Hide label** in the settings form. | | `items` | `Array` | no | `[]` | Your own list of items, edited in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. __Dropdown data-source needs to contain__: ```js [ { id: 1, name: 'Nothing' }, { id: 2, name: 'jComponent' }, { id: 3, name: 'Angular.js' }, { id: 4, name: 'React' } ] ``` ### hiddenvalue · version 1 Type: `component` Adds a value to the data without showing anything. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `fixed` | `Boolean` | no | `false` | **Enable readonly fixed value defined below** in the settings form. | | `type` | `String` | no | `string` | **Type** in the settings form. One of `string` (String), `number` (Number), `boolean` (Boolean), `date` (Date), `object` (Object), `json` (JSON). | | `value` | `String` | no | | **Value** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component sets a hidden value to the model. ### icon · version 1 Type: `component` Lets the user pick an icon from the Total.js icons. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `help` | `String` | no | | **Help message** in the settings form. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component obtaining a list of Total.js icons and search field. ### map · version 1 Type: `component` Shows a map with a marker that the user can move. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `draggable` | `Boolean` | no | `true` | **Enable changing the position of the marker** in the settings form. | | `height` | `Number` | no | `200` | **Height** in the settings form. | | `zoom` | `Number` | no | `11` | **Zoom** in the settings form. | | `maxzoom` | `Number` | no | `19` | **Max. zoom** in the settings form. | | `default` | `String` | no | | **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 `@id` in **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. ### progressbar · version 1 Type: `component` Shows progress as a bar. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `showvalue` | `Boolean` | no | `false` | **Show value** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. Progress bar is used to visualize the progression of an extended operation. ### radiobutton · version 1 Type: `component` A group of radio buttons built from a data source or your own items. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Data source** in the settings form. A component (`@id`), a code list or a data view. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `hidelabel` | `Boolean` | no | `false` | **Hide label** in the settings form. | | `selectfirst` | `Boolean` | no | | **Select first radio** in the settings form. | | `items` | `Array` | no | `[]` | Your own list of items, edited in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. __Radio button__ data-source needs to contain: ```js [ { id: 1, name: 'Ruby', }, { id: 2, name: 'PHP', }, { id: 3, name: 'Node' }, { id: 4, name: 'Python' } ] ``` ### richtext · version 1 Type: `component` A rich text editor based on TinyMCE. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `apikey` | `String` | no | `testapikey` | **API Key** in the settings form. | | `plugins` | `String` | no | | **Plugins** in the settings form. | | `autosave` | `Boolean` | no | | **Autosave** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **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. ### slider · version 1 Type: `component` Lets the user pick a number by dragging a handle. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `icon` | `String` | no | | **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**. Component allows to select a single value, but highlights with a range selection from the min value to the current handle value. ### textarea · version 1 Type: `component` A text field with several lines. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `error` | `String` | no | | **Error message** in the settings form. | | `help` | `String` | no | | **Help message** in the settings form. | | `placeholder` | `String` | no | | **Placeholder** in the settings form. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `height` | `Number` | no | `70` | **Height** in the settings form. | | `maxlength` | `Number` | no | | **Max. length** in the settings form. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `resize` | `Boolean` | no | | **Allow vertical resize** in the settings form. | | `bold` | `Boolean` | no | | **Use bold font** in the settings form. | | `monospace` | `Boolean` | no | | **Use monospace font** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **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. ### textbox · version 1 Type: `component` A one-line field for text, numbers, dates, email addresses and other types. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `type` | `String` | no | `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` | no | | **Default value** in the settings form. | | `error` | `String` | no | | **Error message** in the settings form. | | `help` | `String` | no | | **Help message** in the settings form. | | `placeholder` | `String` | no | | **Placeholder** in the settings form. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `decimals` | `Number` | no | | **Number of decimals** in the settings form. | | `maxlength` | `Number` | no | | **Max. length** in the settings form. | | `min` | `Number` | no | | **Min. value** in the settings form. | | `max` | `Number` | no | | **Max. value** in the settings form. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `bold` | `Boolean` | no | | **Use bold font** in the settings form. | | `monospace` | `Boolean` | no | `false` | **Use monospace font** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **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__: - `string` - `number` - `date` - `datetime` - `email` - `ZIP` - `phone number` - `password` ### togglebutton · version 1 Type: `component` A switch with the value true or false. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `label` | `Boolean` | no | `false` | **Hide label** in the settings form. | | `fullwidth` | `Boolean` | no | `false` | **Full width** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. Button that switches between two states: `true`/`false` ### togglegroup · version 1 Type: `component` A group of buttons where the user selects one. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Datasource** in the settings form. A component (`@id`), a code list or a data view. | | `default` | `Number` | no | `1` | **Default** in the settings form. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `required` | `Boolean` | no | `false` | **Required** in the settings form. | | `nolabel` | `Boolean` | no | `false` | **Hide label** in the settings form. | | `background` | `Boolean` | no | `true` | **Apply background** in the settings form. | | `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. __Toggle group__ data-source needs to contain: ```js [ { id: 1, name: 'Ruby', icon: 'ti ti-totaljs' }, // icon is optional { id: 2, name: 'PHP' }, { id: 3, name: 'Node' }, { id: 4, name: 'Python' } ] ``` ### toolbar · version 1 Type: `component` A row of buttons with a label; each button sends data to an input. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `label` | `String` | no | | **Label** in the settings form. | | `items` | `Array` | no | | The buttons of the toolbar, edited in the settings form. | | `border` | `Boolean` | no | `false` | **Border bottom** in the settings form. | | `padding` | `Boolean` | no | `false` | **Enable padding** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. Series of buttons on a single line with headline. --- title: Content project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/content/ updated: 2026-11-20T06:51:57.969Z --- # Content > Text, images, video, boxes and tabs that show content. 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](/files/Jaq7I42Fs60f.webp) 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### accordion · version 1 Type: `component` Groups content into panels that open and close one below the other. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `items` | `Array` | no | | The panels of the accordion, edited in the settings form. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `bg` | `Boolean` | no | `false` | **Apply background** in the settings form. | | `border` | `Boolean` | no | `true` | **Apply border** in the settings form. | | `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. | | `shadow` | `Boolean` | no | `false` | **Drop shadow** in the settings form. | **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. ### callout · version 1 Type: `component` Shows a short message in a coloured box with an icon. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `color` | `String` | no | `#F0F0F0` | **Type** in the settings form. | | `icon` | `String` | no | `ti ti-totaljs` | **Icon** in the settings form. An icon class, for example `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. ### comment · version 1 Type: `component` 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. ### externalimage · version 1 Type: `component` Shows an image from an address, optionally as a link. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `src` | `String` | no | `https://cdn.totaljs.com/logo.png` | **Image URL address** in the settings form. | | `width` | `String` | no | | **Width** in the settings form. | | `height` | `String` | no | | **Height** in the settings form. | | `rounded` | `Boolean` | no | `true` | **Rounded image** in the settings form. | | `link` | `Boolean` | no | `false` | **Enable link** in the settings form. | | `newtab` | `Boolean` | no | `true` | **Open link in a new tab** in the settings form. | | `url` | `String` | no | | **Link URL address** in the settings form. | **Inputs:** none. **Outputs:** none. This component renders an external image from an address. ### gap · version 1 Type: `component` Adds empty vertical space of a fixed height. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `height` | `Number` | no | `25` | **Height** in the settings form. | **Inputs:** none. **Outputs:** none. This component creates a gap, according to number of pixels you set in settings. ### headline · version 1 Type: `component` Shows a heading of level H1, H2 or H3. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `type` | `String` | no | `h1` | **Type** in the settings form. One of `h1` (H1), `h2` (H2), `h3` (H3). | | `align` | `String` | no | `left` | **Align** in the settings form. One of `left` (Left), `center` (Center), `right` (Right). | | `color` | `String` | no | | **Color** in the settings form. A colour. | **Inputs:** none. **Outputs:** none. This component creates headline. You can set type and style in settings. ### hr · version 1 Type: `component` Draws a horizontal line. **Inputs:** none. **Outputs:** none. Horizontal rule component. ### html · version 1 Type: `component` Shows your own HTML code. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `html` | `String` | no | `You HTML code` | Code, edited in a code editor. | **Inputs:** none. **Outputs:** none. This component renders raw HTML content. ### image · version 1 Type: `component` Shows an image that you upload or pick in the editor. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `rounded` | `Boolean` | no | `true` | **Rounded image** in the settings form. | **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. ### infocard · version 1 Type: `component` Shows a label and a value, for example a status. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `color` | `String` | no | | **Border color** in the settings form. A colour. | | `isnullable` | `Boolean` | no | | **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. ### listbox · version 1 Type: `component` Shows a list of items from a data source and sends the clicked item to an output. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Data source** in the settings form. A component (`@id`), a code list or a data view. | | `output` | `String` | no | | **Output** in the settings form. An output of the design. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `hidelabel` | `Boolean` | no | `false` | **Hide label** in the settings form. | | `background` | `Boolean` | no | `false` | **Enable background** in the settings form. | | `items` | `Array` | no | `[]` | Your own list of items, edited in the settings form. | **Inputs:** none. **Outputs:** `click` (Click). - Other components can follow it: it appears as `@id` in **Read value from**. __Listbox data-source needs to contain__: ```js [ { name: 'Ruby' }, { name: 'PHP' }, { name: 'node.js', description: 'Lorem ipsum' }, // description is optional { name: 'Python' } ] ``` ### panel · version 1 Type: `component` A box with a label and an area for other components. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `icon` | `String` | no | `ti ti-grid` | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `bglabel` | `Boolean` | no | `false` | **Apply background on label** in the settings form. | | `bgcontent` | `Boolean` | no | `false` | **Apply background on content** in the settings form. | | `border` | `Boolean` | no | `true` | **Apply border** in the settings form. | | `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. | | `shadow` | `Boolean` | no | `false` | **Drop shadow** in the settings form. | **Inputs:** none. **Outputs:** none. The component is suitable to making a better design. ### paragraph · version 1 Type: `component` Shows a paragraph of text that you edit on the canvas. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `size` | `String` | no | `14` | **Font size** in the settings form. One of `12` (Small), `14` (Normal), `18` (Big). | | `align` | `String` | no | `left` | **Text align** in the settings form. One of `left` (Left), `center` (Center), `right` (Right), `justify` (Justify). | | `color` | `String` | no | `#777` | **Color** in the settings form. A colour. | **Inputs:** none. **Outputs:** none. This component creates a paragraph element with specific style you can set in settings. ### rating · version 1 Type: `component` Lets the user give a star rating. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `icon` | `String` | no | | **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. ### stylebox · version 1 Type: `component` A styled box with an area for other components. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `background` | `Boolean` | no | `true` | **Apply background** in the settings form. | | `padding` | `Boolean` | no | `true` | **Apply padding** in the settings form. | | `border` | `Boolean` | no | `false` | **Apply border** in the settings form. | | `radius` | `Boolean` | no | `false` | **Apply border radius** in the settings form. | | `shadow` | `Boolean` | no | `false` | **Drop shadow** in the settings form. | **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. ### tabs · version 1 Type: `component` Shows content in tabs, one tab at a time. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `items` | `Array` | no | | 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. ### video · version 1 Type: `component` Plays a YouTube or Vimeo video. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `url` | `String` | no | | **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. --- title: Data project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/data/ updated: 2026-11-20T06:51:57.969Z --- # Data > Components that read, change, collect and send data, most of them invisible in the published design. Components that read, change, collect and send data, most of them invisible in the published design. This page holds the catalogue group **Data**. 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### datagenerator · version 1 Type: `component` Creates data from JavaScript code, for example sample data for a chart. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `value` | `String` | no | | Code, edited in a code editor. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. Data generator creates data defined in the configuration. ### datareader · version 1 Type: `component` Reads data from an address and keeps it for other components. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `interval` | `Number` | no | `0` | **Interval** in the settings form. | | `read` | `String` | no | | **Read value from** in the settings form. | | `url` | `String` | no | | **URL address for obtaining data** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. Data reader reads data from the URL address and stores them in memory. Other components can read this data. ### datasource · version 1 Type: `component` Shows data from an address. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `border` | `Boolean` | no | `true` | **Apply border and padding** in the settings form. | | `url` | `String` | no | | **URL address for obtaining data** in the settings form. | **Inputs:** `load` (Load data). **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. This component displays data from specified datasource. ### datatransformer · version 1 Type: `component` Changes incoming data with your own JavaScript code. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `value` | `String` | no | `return value` | Code, edited in a code editor. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The data transform component can transform incoming data. ### dataview · version 1 Type: `component` Reads data from a data view of your server and keeps it for other components. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `model` | `String` | no | | **Data model** in the settings form. A path. | | `query` | `String` | no | | **Query arguments from the data model** in the settings form. | | `interval` | `Number` | no | `0` | **Interval** in the settings form. | | `read` | `String` | no | | **Read value from incoming data** in the settings form. | | `id` | `String` | no | | **Choose a data view** in the settings form. A data view of your server. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. Data view reads data from predefined data views and stores them in memory. Other components can read this data. ### dynamicsource · version 1 Type: `component` Loads items from an address and maps them to an id and a name. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `url` | `String` | no | `https://hostname.com/cities/{value}` | **Data source URL address** in the settings form. | | `id` | `String` | no | `id` | **Identifier** in the settings form. | | `text` | `String` | no | `name` | **Name/Label** in the settings form. | | `items` | `Array` | no | `[]` | Your own list of items, edited in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component loads data and map them automatically. ### form · version 1 Type: `component` Collects the values of the components inside it and sends them when the user submits. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `border` | `Boolean` | no | `false` | **Apply border and padding** in the settings form. | | `checkvisible` | `Boolean` | no | `true` | **Validate only visible components** in the settings form. | | `autoreset` | `Boolean` | no | `true` | **Reset controls after send** in the settings form. | | `default` | `Boolean` | no | | **Apply default values after the start** in the settings form. | | `bindtoall` | `Boolean` | no | `true` | **Bind value to all components with a defined path (otherwise to controls only)** in the settings form. | | `input` | `String` | no | | **Send data to input** in the settings form. An input of the design. | | `button` | `String` | no | `SUBMIT` | **Button label** in the settings form. | | `icon` | `String` | no | | **Button icon** in the settings form. An icon class, for example `ti ti-totaljs`. | **Inputs:** `load` (Load data), `partial` (Load partial data), `reset` (Reset), `clear` (Clear). **Outputs:** `submit` (Submit). - Other components can follow it: it appears as `@id` in **Read value from**. The components creates a form. ### datagps · version 1 Type: `component` Reads the GPS position of the device. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `watcher` | `Boolean` | no | `false` | **Enable real-time watcher** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. This component can retrieve GPS position. __Output__: ```js { lat: Number, lng: Number, speed: Number, altitude: Number, accuracy: Number, pos: String } ``` ### input · version 1 Type: `component` Receives data on its input and keeps it as its value. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `read` | `String` | no | | **Read from** in the settings form. | **Inputs:** `load` (Load data). **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component processes input data and sets it according to a defined path. ### readvalue · version 1 Type: `component` Reads a value from another component by a path. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `read` | `String` | no | | **Read value from** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. Read value component reads a value according to the path and sets it according to the component's path. ### redirect · version 1 Type: `component` Opens an address chosen from a data source. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Datasource** in the settings form. A component (`@id`), a code list or a data view. | | `read` | `String` | no | | **Read from** in the settings form. | **Inputs:** `load` (Load data). **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component can redirect page by datasource. Datasource is required and needs to contain: ```js [ { id: 1, url: 'https://www.totaljs.com/' }, { id: 2, url: 'https://www.totaljs.com/' }, { id: 3, url: 'https://www.totaljs.com/' } ] ``` ### restreader · version 1 Type: `component` Reads data from a REST address and keeps it under its path. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `read` | `String` | no | | **Read value from** in the settings form. | | `url` | `String` | no | | **URL address for obtaining data** in the settings form. | **Inputs:** `load` (Load data). **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. This component reads data from a REST service and sets them according to the specified path. ### sendtoinput · version 1 Type: `component` Sends its value to an input of the design whenever the value changes. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `input` | `String` | no | | **Input** in the settings form. An input of the design. | | `read` | `String` | no | | **Read from** in the settings form. | | `write` | `String` | no | | **Write to** in the settings form. | **Inputs:** none. **Outputs:** none. This component can send data to an input. ### wsreceiver · version 1 Type: `component` Connects to a WebSocket and binds the incoming messages to the data. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `endpoint` | `String` | no | `/realtime/` | **WS endpoint** in the settings form. | | `sendall` | `Boolean` | no | | **Send always all data** in the settings form. | **Inputs:** none. **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component creates a WebSocket connection, binds all incoming messages to the model, and sends changes over WebSocket. --- title: Layouts and parts project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/layouts-and-parts/ updated: 2026-11-20T06:51:57.969Z --- # Layouts and parts > Areas that hold and arrange other components, and parts made of other designs. Areas that hold and arrange other components, and parts made of other designs. This page holds the catalogue groups **Layouts** and **Parts**. 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### applayout · version 1 Type: `component` The frame of an app with a top bar, a title and buttons. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `buttons` | `Array` | no | `[]` | Your own list of buttons, edited in the settings form. | | `backnav` | `Boolean` | no | | **Allow back button** in the settings form. | **Inputs:** none. **Outputs:** one for each button in the settings. - Hidden in the component list of the editor. The component has no readme. It frames an app: a top bar with the name and icon of the layout, an optional back button and your own buttons, and an area for the content below. Each button you add in the settings becomes an output of the design. The component is hidden in the component list. ### columns · version 1 Type: `component` Divides the area into a number of columns. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `count` | `Number` | no | `3` | **Count** in the settings form. | | `countmd` | `Number` | no | `0` | **Count (MD)** in the settings form. | | `countsm` | `Number` | no | `0` | **Count (SM)** in the settings form. | | `countxs` | `Number` | no | `0` | **Count (XS)** in the settings form. | | `background` | `Boolean` | no | `true` | **Apply background and padding** in the settings form. | | `rounded` | `Boolean` | no | `true` | **Rounded corners** in the settings form. | | `hidden` | `Boolean` | no | `false` | **Hide in render** in the settings form. | **Inputs:** none. **Outputs:** none. The Columns component divides your content into a number of parts. - **Content division**: divide the content into a set number of parts. - **Settings**: set the number of parts. ### container · version 1 Type: `component` A simple area for other components. **Inputs:** none. **Outputs:** none. Container is a simple layout component where you can place your content. ### display · version 1 Type: `component` Sets display-size classes from its own width, for components inside it. **Inputs:** none. **Outputs:** none. This component sets display sizes according to the current element width (as a class e.g. `d-xs` or `d-lg`). It can affect, for example, the Columns component. ### hiddencontainer · version 1 Type: `component` An area that is hidden in the published design, for data components. **Inputs:** none. **Outputs:** none. This container will always be hidden in the render and it's targeted for data operations. ### part · version 1 Type: `component` Shows another design, made with the Part template, inside this design. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `url` | `String` | no | | **URL address to the app source (JSON)** in the settings form. | **Inputs:** none. **Outputs:** none. - Offered in **Import components** for designs of type `app`, `dashboard`, `mobile`, `uicomponent`. The form collects only components with defined paths. ### partcontainer · version 1 Type: `component` The root area of a Part design. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `border` | `Boolean` | no | `false` | **Apply border and padding** in the settings form. | | `checkvisible` | `Boolean` | no | `true` | **Validate only visible components** in the settings form. | | `autoreset` | `Boolean` | no | | **Reset controls after send** in the settings form. | | `button` | `String` | no | | **Button label** in the settings form. | | `url` | `String` | no | | **URL address for data processing** in the settings form. | **Inputs:** `load` (Load), `reset` (Reset), `clear` (Clear). **Outputs:** `read` (Read). - Offered in **Import components** for designs of type `part`. - Hidden in the component list of the editor. The form collects only components with defined paths. ### variablecontainer · version 1 Type: `component` An area with a maximum width that you set. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `maxwidth` | `String` | no | `800` | **Maximum width** in the settings form. | **Inputs:** none. **Outputs:** none. A variable container offers a user-defined maximum width. --- title: Charts and dashboard project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/charts-and-dashboard/ updated: 2026-11-20T06:51:57.969Z --- # Charts and dashboard > Charts and values for dashboards. Charts and values for dashboards. This page holds the catalogue groups **Charts** and **Dashboard**. ![A Line chart that shows four temperature values from a Data generator](/files/Jaq7Ho20s61f.webp) 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### barchart · version 1 Type: `component` Shows series of values as horizontal bars. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datetype` | `String` | no | `full` | **Date type** in the settings form. One of `full` (Full date), `years` (Years), `months` (Months), `days` (Days), `hours` (Hours). | | `unit` | `String` | no | | **Unit** in the settings form. | | `decimals` | `Number` | no | `0` | **Decimals** in the settings form. | | `min` | `Number` | no | | **Min value** in the settings form. | | `max` | `Number` | no | | **Max value** in the settings form. | **Inputs:** none. **Outputs:** none. - Offered in **Import components** for designs of type `app`, `dashboard`. - Loads the external library apexcharts from cdnjs.cloudflare.com. __Barchart data-source needs to contain__: ```js [ { name: 'name', // name of the serie data: [{ x: 'DATE', y: 'value' }, { x: 'DATE', y: 'value' }, ...], // series decimals: 2, // optional, number of decimal places unit: '°C' // optional } ] ``` ### columnchart · version 1 Type: `component` Shows series of values as vertical columns. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datetype` | `String` | no | `full` | **Date type** in the settings form. One of `full` (Full date), `years` (Years), `months` (Months), `days` (Days), `hours` (Hours). | | `unit` | `String` | no | | **Unit** in the settings form. | | `decimals` | `Number` | no | `0` | **Decimals** in the settings form. | | `min` | `Number` | no | | **Min value** in the settings form. | | `max` | `Number` | no | | **Max value** in the settings form. | **Inputs:** none. **Outputs:** none. - Loads the external library apexcharts from cdnjs.cloudflare.com. __Columnchart data-source needs to contain__: ```js [ { name: 'name', // name of the serie data: [{ x: 'DATE', y: 'value' }, { x: 'DATE', y: 'value' }, ...], // series decimals: 2, // optional, number of decimal places unit: '°C' // optional } ] ``` ### donutchart · version 1 Type: `component` Shows values as parts of a ring. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Datasource** in the settings form. A component (`@id`), a code list or a data view. | | `unit` | `String` | no | | **Unit** in the settings form. | | `decimals` | `Number` | no | `0` | **Decimals** in the settings form. | **Inputs:** none. **Outputs:** none. - Loads the external library apexcharts from cdnjs.cloudflare.com. __Donutchart data-source needs to contain__: ```js [ { data: 44, name: 'Apple', unit: '', decimals: 1 }, { data: 55, name: 'Mango', unit: '', decimals: 1 } ] ``` ### lastvalue · version 1 Type: `component` Shows one value with a note and an icon, for example the latest reading on a dashboard. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `icon` | `String` | no | `ti ti-dashboard` | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `color` | `String` | no | | **Icon color** in the settings form. A colour. | | `iconpos` | `String` | no | `overlay` | **Icon position** in the settings form. One of `top` (Top), `overlay` (Overlay). | | `isnullable` | `Boolean` | no | | **Render nullable value** in the settings form. | **Inputs:** none. **Outputs:** none. This component displays text value and icon according to your styles in settings. ### linechart · version 1 Type: `component` Shows series of values as lines over time. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datetype` | `String` | no | `full` | **Date type** in the settings form. One of `full` (Full date), `years` (Years), `months` (Months), `days` (Days), `hours` (Hours). | | `unit` | `String` | no | | **Unit** in the settings form. | | `decimals` | `Number` | no | `0` | **Decimals** in the settings form. | | `min` | `Number` | no | | **Min value** in the settings form. | | `max` | `Number` | no | | **Max value** in the settings form. | | `stroke` | `String` | no | `smooth` | **Line type** in the settings form. One of `smooth` (Smooth), `straight` (Straight), `stepline` (Stepline). | **Inputs:** none. **Outputs:** none. - Loads the external library apexcharts from cdnjs.cloudflare.com. __Linechart data-source needs to contain__: ```js [ { name: 'name', // name of the serie data: [{ x: 'DATE', y: 'value' }, { x: 'DATE', y: 'value' }, ...], // series decimals: 2, // optional, number of decimal places unit: '°C' // optional } ] ``` ### piechart · version 1 Type: `component` Shows values as slices of a circle. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Datasource** in the settings form. A component (`@id`), a code list or a data view. | | `unit` | `String` | no | | **Unit** in the settings form. | | `decimals` | `Number` | no | `0` | **Decimals** in the settings form. | **Inputs:** none. **Outputs:** none. - Loads the external library apexcharts from cdnjs.cloudflare.com. __Piechart data-source needs to contain__: ```js [ { data: 44, name: 'Apple', unit: '', decimals: 1 }, { data: 55, name: 'Mango', unit: '', decimals: 1 } ] ``` --- title: Lists and files project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/lists-and-files/ updated: 2026-11-20T06:51:57.969Z --- # Lists and files > Lists, cards and tables of data, and file upload. Lists, cards and tables of data, and file upload. This page holds the catalogue groups **List** and **Files**. 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### cards · version 1 Type: `component` Shows items from a data source as cards. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `count` | `Number` | no | `4` | **Count** in the settings form. | | `items` | `Array` | no | | The rows of each card (image, title, empty and other types), edited in the settings form. | | `buttons` | `Array` | no | | Your own list of buttons, edited in the settings form. | | `shadow` | `Boolean` | no | | **Drop shadow** in the settings form. | | `radius` | `Boolean` | no | | **Apply border radius** in the settings form. | **Inputs:** none. **Outputs:** `card` (On card), `button` (On button). With this component you can create interesting content. Most suitable on articles. ### datagrid · version 1 Type: `component` Shows data from a data source in a table with columns, sorting and filtering. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Data source** in the settings form. A component (`@id`), a code list or a data view. | | `margin` | `Number` | no | `0` | **Top margin** in the settings form. | | `height` | `String` | no | `500` | **Height** in the settings form. One of `window` (Window), `parent` (Parent), `fluid` (Fluid), `auto` (Auto). | | `minheight` | `Number` | no | `300` | **Min. height** in the settings form. | | `border` | `Boolean` | no | `true` | **Enable border** in the settings form. | | `numbering` | `Boolean` | no | `true` | **Enable numbering** in the settings form. | | `checkbox` | `Boolean` | no | `false` | **Enable checkboxes** in the settings form. | | `autoselect` | `Boolean` | no | `false` | **Enable auto-select first row** in the settings form. | | `columns` | `Array` | no | `[]` | The columns of the grid, edited in the settings form. | **Inputs:** `rows` (Rows). **Outputs:** `row` (On row), `button` (On button). This component displays data from your datasource in a grid. In settings you can set datasource, as well as style of grid columns. ### fileuploader · version 1 Type: `component` Uploads files to an address and keeps the answer as its value. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `url` | `String` | no | | **URL for upload** in the settings form. | | `type` | `String` | no | `all` | **Type of files** in the settings form. One of `all` (All files), `image` (Images only), `text` (Plain text files only). | | `multiple` | `Boolean` | no | | **Allow uploading multiple files together** in the settings form. | **Inputs:** `upload` (Upload files). **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component allows users to upload files to a specific endpoint. A response will be binded to the path set in the configuration. ### listview · version 1 Type: `component` Shows a list of items from a data source and sends the clicked item to an output. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `datasource` | `String` | no | | **Datasource** in the settings form. A component (`@id`), a code list or a data view. | | `icon` | `String` | no | | **Icon** in the settings form. An icon class, for example `ti ti-totaljs`. | | `nolabel` | `Boolean` | no | `false` | **Hide label** in the settings form. | | `background` | `Boolean` | no | `false` | **Enable background** in the settings form. | **Inputs:** none. **Outputs:** `click` (Click). - Other components can follow it: it appears as `@id` in **Read value from**. __Listview data-source needs to contain__: ```js [ { name: 'Ruby' }, { name: 'PHP' }, { name: 'Total.js', description: 'Lorem ipsum' }, // description is optional { name: 'Python' } ] ``` --- title: Logic and tools project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/logic-and-tools/ updated: 2026-11-20T06:51:57.969Z --- # Logic and tools > Components that react to values, load other designs and show data for checking. 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### counter · version 1 Type: `component` 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. ### enable · version 1 Type: `component` Enables or disables the components inside it when a condition is met. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `border` | `Boolean` | no | `true` | **Apply border and padding** in the settings form. | | `type` | `String` | no | `enable` | **Perform** in the settings form. One of `enable` (Enable), `disable` (Disable). | | `condition` | `String` | no | `positive` | **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). | | `value` | `String` | no | | **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. ### link · version 1 Type: `component` Loads another design into this one. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `url` | `String` | no | | **URL address to the app source (JSON)** in the settings form. A design from your list of designs. | | `resetcss` | `Boolean` | no | `true` | **Reset element CSS** in the settings form. | | `input` | `String` | no | | **Input ID** in the settings form. | **Inputs:** none. **Outputs:** none. The component can load another app. ### sound · version 1 Type: `component` Plays a sound when a condition is met. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `type` | `String` | no | `Beep` | **Play** in the settings form. One of `Beep`, `Alert`, `Success`, `Confirm`, `Fail`, `Badge`, `Notification`, `Done`, `Drum`, `Message`. | | `volume` | `Number` | no | `20` | **Volume** in the settings form. | | `condition` | `String` | no | `positive` | **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). | | `value` | `String` | no | | **Value** in the settings form. | **Inputs:** none. **Outputs:** none. This component will play the sound you set in your settings. ### show · version 1 Type: `component` Shows or hides the components inside it when a condition is met. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `border` | `Boolean` | no | `true` | **Apply border and padding** in the settings form. | | `type` | `String` | no | `show` | **Perform** in the settings form. One of `show` (Show), `hide` (Hide). | | `condition` | `String` | no | `positive` | **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). | | `value` | `String` | no | | **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. ### json · version 1 Type: `component` Shows its value as formatted JSON, for checking data. **Inputs:** none. **Outputs:** none. This component prints data in JSON format. --- title: Flow and Flowboard project: UI Builder version: 1.0 section: components language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/components/flow-and-flowboard/ updated: 2026-11-20T06:51:57.969Z --- # Flow and Flowboard > Components that talk to Total.js Flow, and the pieces of a Flowboard design. Components that talk to Total.js Flow, and the pieces of a Flowboard design. This page holds the catalogue groups **Flow** and **Flowboard**. 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](/uibuilder/1-0/guides/component-settings/). To add a component to a design, see [Import components](/uibuilder/1-0/guides/import-components/). ## API ### fbfloorplan · version 1 Type: `component` The background image of a Flowboard design. **Inputs:** none. **Outputs:** none. - Offered in **Import components** for designs of type `flowboard`. - Hidden in the component list of the editor. The component can be used as a background / floor plan for dynamic markers. ### flowinput · version 1 Type: `component` Receives data from Total.js Flow. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `target` | `Array` | no | `[]` | **Resend data** in the settings form. An input of the design. You can choose several. | **Inputs:** `input` (Input). **Outputs:** none. - Other components can follow it: it appears as `@id` in **Read value from**. The component processes incoming data from the Total.js Flow. It can resend data to other inputs automatically. ### flowoutput · version 1 Type: `component` Sends data from outputs of the design to Total.js Flow. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `target` | `Array` | no | `[]` | **Target** in the settings form. An output of the design. You can choose several. | | `delay` | `Number` | no | `0` | **Delay in sec.** in the settings form. | | `autorun` | `Boolean` | no | `false` | **Trigger value after initialization** in the settings form. | **Inputs:** `payload` (Payload). **Outputs:** `output` (Output). The component will capture output from other outputs and send data to the Flow. ### fbmarker · version 1 Type: `component` A marker that you place freely on a Flowboard floor plan. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `size` | `String` | no | `14` | **Font size** in the settings form. One of `11` (Small), `14` (Normal), `18` (Big). | | `color` | `String` | no | `#777` | **Color** in the settings form. A colour. | **Inputs:** none. **Outputs:** none. - Offered in **Import components** for designs of type `flowboard`. - Placed freely on the canvas, not in a container. The component has no readme. It shows an icon and a text that you place anywhere on the floor plan of a Flowboard design. The text can contain `{{ value }}`, which shows the current value of the marker. Set the font size and the colour in the settings. --- title: Develop components project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/introduction/ updated: 2026-11-19T11:56:16.260Z --- # Develop components > What a UI Builder component is, what you need to write one and what to read next. A component is a building block of a design, such as **Textbox**, **Form** or **Line chart**. When the official catalogue has no component for your task, you can write your own. A component is a small folder of HTML files with a little JavaScript, and you can try it in UI Builder without other tools. This section covers release 1.0 of Total.js UI Builder. To use UI Builder itself, see the [UI Builder guides](/uibuilder/1-0/guides/introduction/). The official components are listed in [Official components](../../components/introduction/). ## How a component works | Word | What it means | |---|---| | **Component** | The files: the look on the canvas, the code of the published design, the settings form and the readme. | | **Instance** | One copy of the component in a design. UI Builder runs your code once for each instance, with the settings of that instance. | | **Configuration** | The settings of one instance, which the user edits in the settings form. | | **Value** | The data that an instance holds. Other components can follow it, and a **Form** collects it. | | **Inputs and outputs** | Points where the app that shows the design sends data in or receives data. | A component has two sides. In the editor, UI Builder runs the code of `editor.html` and shows what the component will look like. In a published design, it runs the code of `render.html`, which does the real work. Both run in the browser. ## What you need - A running UI Builder. See [Install](/uibuilder/1-0/guides/install/). - A web server for your component files. The `public` folder of UI Builder itself works for trying them. - Basic JavaScript, HTML and CSS. The code runs with the Total.js UI library, so its helpers such as `.format()`, `Tangular` and jQuery are available. ## What to read next 1. [The component folder](../component-folder/): the files and their parts. 2. [Your first component](../first-component/): write it, load it and publish it. 3. [Settings and the settings form](../settings-form/), [Values and data binding](../values-and-binding/) and the other topics in the menu. 4. The reference: [Component declaration](../component-api/), [Instance](../instance-api/) and [App](../app-api/). --- title: The component folder project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/component-folder/ updated: 2026-11-19T11:56:06.259Z --- # The component folder > The files of a component, the parts of each file and how UI Builder finds them. A component lives in a folder named after its id, for example `greeting/`. UI Builder only needs the address of `editor.html`; it finds the other files next to it. ```text greeting/ editor.html the look in the editor, the details and the readme render.html the code of the published design settings.html the settings form ``` ## editor.html `editor.html` is the file you import. It can hold these parts: | Part | What it holds | |---|---| | ` Shows a short greeting. Set the text and the weight of the font in the settings. ``` `render.html`: ```html ``` `settings.html`: ```html
Text Bold text
``` UI Builder serves its `public` folder, so the component is at `http://localhost:8000/components/greeting/editor.html`. The files can also be on any web server that allows requests from the address of UI Builder (CORS). ## Load it 1. Start a design from the **Web app** template. 2. Select **Import components** at the top of the component list, and then **Import custom**. 3. In **URL address**, enter `http://localhost:8000/components/greeting/editor.html`. 4. Select **IMPORT**. **Greeting** appears in the list on the left, in the group **Demo**. See [Import a custom component](/uibuilder/1-0/guides/import-custom-component/). ## Use it 1. Drag **Greeting** onto the canvas. It shows **Hello, world!**, the default text from `exports.config`. 2. Double-click it to open its settings. 3. Type `Welcome to Demo project` in **Text**, select **Bold text** and select **SUBMIT**. ![The settings of the Greeting component with the text Welcome to Demo project](/files/Jaq7La68s61f.webp) The form shows **Name** and **Read value from** first. UI Builder adds these fields to every component. Your fields from `settings.html` follow. ## Publish it Select **Publish** and **Download HTML**. The published page loads `render.html` of your component and shows the greeting. See [Publish a design](/uibuilder/1-0/guides/publish/). ## What the code does - `exports.id`, `exports.name`, `exports.group`, `exports.icon` and the other properties describe the component. See [Component declaration](../component-api/). - `exports.config` holds the default settings of a new instance. - UI Builder calls `exports.make` once for each instance. It receives the `instance`, its `config`, its `element` (a jQuery object) and `cls`, the class name of the component. - In the editor, `instance.on('configure', ...)` runs after the user submits the settings. The code calls it once with `instance.emit('configure')` to draw the first look. - In the published design, the settings do not change, so `render.html` draws the text once. ## Change the component Edit the files and select **Re-load components** (circular arrows) in the toolbar. The canvas is built again with the new code. --- title: Settings and the settings form project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/settings-form/ updated: 2026-11-19T11:56:16.260Z --- # Settings and the settings form > Default settings, the fields of the settings form and how the component reacts to changes. The settings of an instance are in `config`, the second argument of `exports.make`. They start as a copy of `exports.config` and change when the user submits the settings form. ## Default settings ```js exports.config = { min: 0, max: 10, step: 1 }; ``` Every new instance starts with these values. The configuration also holds `name`, the **Name** of the instance, and `path`, the **Read value from** field when the user sets it. ## The settings form The form is made of Total.js UI components. Each field has a `path` that starts with `?.` followed by the key in the configuration: ```html
Minimum
Maximum
Step
``` ![The settings of a Stepper: Name, Read value from, Minimum, Maximum and Step](/files/Jaq7NI2V060f.webp) UI Builder puts **Name** and **Read value from** above your fields, and the **SUBMIT** and **Cancel** buttons below them. ## Kinds of fields The `input` component takes its kind from `config`. These are used by the official components: | `config` | Field | |---|---| | (none) | A text field. | | `type:checkbox` | A checkbox, for a `true` or `false` setting. | | `type:number` | A number. | | `type:icon` | An icon picker. | | `type:color` | A colour picker. | | `dirsource:a|First,b|Second` | A list of fixed options: the value, a bar and the text. | | `dirsource:#inputs` | A list of the inputs of the design. | | `dirsource:#outputs` | A list of the outputs of the design. | | `dirsource:#datasource` | A list of data sources: components that others can follow, code lists and data views. | | `required:1` | The field must not be empty. | | `placeholder:Text` | A hint in an empty field. | Join several with `;`, for example `type:number;required:1`. For a field that appears only for some values of another field, wrap it in ``, as **Textbox** does. ## Where to put the form | `exports.settings` | Form | |---|---| | `'auto'` | `settings.html` next to `editor.html`. | | An address | The file at that address. | | HTML | The form itself, for example `'
Title
'`. | A `` part in `editor.html` works too. A component without settings shows only **Name** and **Read value from**. ## React to changes In the editor, UI Builder emits `configure` after the user submits the form. The handler receives the previous values of the keys that changed. ```js instance.on('configure', function(changes) { element.find('.title').text(config.title); }); instance.emit('configure'); ``` `configure` does not run when the instance is created, so call it once yourself, as above. In a published design the settings do not change. To change the settings before the form opens, handle `settings`. It receives a copy of the configuration that the form will edit: ```js instance.on('settings', function(config) { // change config for the form }); ``` --- title: Values and data binding project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/values-and-binding/ updated: 2026-11-19T11:56:16.260Z --- # Values and data binding > How a component holds a value, shares it with a Form or another component, and validates it. Each instance holds its data in `instance.state.value`. A component that the user edits, such as a field, sets this value; other components read it. This page uses **Stepper**, a number with a minus and a plus button. ![A Stepper inside a Form; To JSON follows the Form and shows quantity 3](/files/Jaq7NQ2e061f.webp) ## The code of the published design `render.html` of **Stepper**: ```html ``` ## Set and read the value - `instance.set('value', value)` sets the value. UI Builder emits `value` to the instance and passes the value on to the components that follow it. - `instance.get()` returns the value. - `instance.on('value', fn)` runs when the value changes, also when a **Form** or another component sets it. `set` does nothing when the new value equals the current one, unless the value is an object. ## The state `instance.set()` also sets the other parts of `instance.state`: | Key | Meaning | Class on the element | |---|---|---| | `value` | The data of the instance. | | | `modified` | The user changed the value. | `UI_modified` | | `touched` | The user worked with the component. | `UI_touched` | | `invalid` | The value is not valid. | `UI_invalid` | | `disabled` | The component is disabled. | `UI_disabled` | | `readonly` | The component is read only. | `UI_readonly` | Use the classes in your CSS. `.CLASS.UI_touched.UI_invalid` shows an error only after the user has worked with the component: ![The Stepper with the value 7 above its maximum of 5, with a red border and a disabled SEND button](/files/Jaq7NS2f060f.webp) ## Validation `instance.validate` is a function that you define. It returns `true` when the value is valid. UI Builder calls it through `instance.check()`, which runs after every new value and every change of `touched`, and sets `invalid`. It returns `false`, or an error text, when the value is not valid. A **Form** calls it for every component inside it and disables its button while one is invalid. `instance.default` returns the value that a **Form** sets when it clears its components. Handle `reset` to clear `touched` and `modified` after the form is sent. ## Work with a Form Set `instance.state.bind = true` in `render.html`. A **Form** then: - collects the values of the components inside it under their **Read value from** paths, for example `{ "quantity": 3 }`; - fills them from the data of its input **Load data**; - sends the collected data from its output **Submit**. The path can have dots, for example `address.city`. See [Component settings](/uibuilder/1-0/guides/component-settings/). ## Follow another component `exports.follow = true` in `editor.html` lists every instance of your component in **Read value from** of other components, as `@` and its id. A component whose path is `@id` follows that instance: it receives every new value of it, and a value it sets goes back to that instance. In the picture above, **To JSON** has the path `@` plus the id of the **Form**, so it shows the data of the form as the user clicks. `instance.datasource('@id', fn)` reads the value of another instance as a list and calls `fn` again every time it changes. Components with a **Data source** field use it. ## Notify instead of bind With `instance.state.notify = true`, a following instance does not get the new value: UI Builder emits `notify` with the value instead, and your code decides what to do. **Counter** uses it to count the changes. --- title: Inputs and outputs project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/inputs-outputs/ updated: 2026-11-19T11:56:06.259Z --- # Inputs and outputs > Let the app that shows a design send data into your component and receive data from it. Inputs and outputs connect a design to the app that shows it. An input receives data from the app. An output sends data to it. UI Builder lists them in **Inputs / Outputs** for every instance of your component. See [Inputs and outputs](/uibuilder/1-0/guides/inputs-outputs/). ## Declare them Declare the inputs and outputs in `editor.html`, for the list in the editor, and in `render.html`, for the published design: ```js exports.inputs = [{ id: 'set', name: 'Set value' }]; exports.outputs = [{ id: 'change', name: 'Change' }]; ``` The id of an input or output in the design is the id of the instance, `_` and the id you declare, for example `cid6wh0tx52_set`. ![Inputs / Outputs with the inputs and outputs of a Form and two Steppers](/files/Jaq7Le6Bs60f.webp) ## Handle an input ```js instance.input('set', function(data, callback) { instance.set('value', +data); }); ``` The function receives the data and a callback. The app sends data with `app.input()`: ```js app.input('cid6wh0tx52_set', 2, function(err) { // err is 'Input "..." not found' when there is no such input }); ``` ## Send an output Pass the data to send it at once: ```js instance.output('change', value); ``` Or register a function and call the output without data. UI Builder calls your function with `next`, and you send the result with `next(err, data)`. **Form** sends its data this way: ```js instance.output('submit', function(next) { next(null, instance.get()); }); instance.output('submit'); ``` ## Receive outputs in the app The app that shows the design listens to the outputs of all instances: ```js app.on('output', function(meta) { // meta.id 'cid6wh0tx52_change' // meta.ref 'change' // meta.data the data // meta.err the error, or null // meta.instance, meta.component, meta.app }); ``` `UIBuilder.on('output', fn)` receives the outputs of every design on the page. See [App reference](../app-api/). ## Outputs of one instance To give each instance its own outputs, for example one for each button the user adds, set `instance.outputs` to an array like `exports.outputs`. The editor lists those, and `instance.output()` uses them. **App Layout** does this for its buttons. ## Send data to an input from a component A component can send data to an input of the same design with `instance.app.input(id, data)`. **Button** uses the input the user picks in its settings, from a field with `dirsource:#inputs`. --- title: Containers project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/containers/ updated: 2026-11-19T11:56:06.259Z --- # Containers > Make a component that holds other components, such as a box with a title. A container is a component with one or more areas where the user drops other components. **Container**, **Columns**, **Tabs** and **Form** are containers. This page builds **Card**, a box with a title. ![The editor with a Form that holds a Stepper, and a Card titled Extras that holds a second Stepper](/files/Jaq7LV63s60f.webp) ## Mark the area An element with the class `UI_components` and a `data-index` is an area. UI Builder puts the components that the user drops there into it, in the editor and in the published design. `editor.html`: ```html A box with a title. Drop other components inside it. ``` `render.html`: ```html ``` - The editor needs a `min-height` on the empty area, or the user cannot drop anything into it. - A component with several areas numbers them `data-index="0"`, `data-index="1"` and so on, as **Columns** does. - The published design must create the same areas with the same numbers, or the components inside are not shown. - `UI_border` and `UI_label` are classes of the templates: a thin border with padding, and the small label above a container. ## The components inside In code, the instance knows the instances inside it: - `instance.children`: the instances directly inside it. - `instance.family()`: all instances inside it, at every level. `instance.family(1)` returns those of the area with `data-index="1"`. - `instance.parent`: the instance that holds this one. A **Form** reads `instance.family()` in its `ready` handler and collects their values. ## A component that brings its own content **Export to component** makes a container that brings the components it was made from. Its declaration lists them in `exports.children` and the components it needs in `exports.components`. See [Export to component](/uibuilder/1-0/guides/export-to-component/). The user cannot change the components inside such an instance. --- title: Editor code and published code project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/editor-and-render/ updated: 2026-11-19T11:56:06.259Z --- # Editor code and published code > What runs in the editor, what runs in a published design and how the design is published. UI Builder runs your component in two places. The editor runs `exports.make` of `editor.html`, and the published design runs `exports.make` of `render.html`. ## What each one does | | Editor | Published design | |---|---|---| | Purpose | Show what the component will look like, and react to its settings. | Do the real work: read input, keep the value, talk to other components. | | Settings change | Yes, emits `configure`. | No. | | Last argument of `make` | `true` | `undefined` | | `UIBuilder.editor` | `true` | not set | Keep the editor code light: a field can show its label and a placeholder without working. **Textbox** shows a grey box in the editor and a real input in the published design. One source for both is possible: use the last argument of `make` to tell them apart. ```js exports.make = function(instance, config, element, cls, iseditor) { if (!iseditor) { instance.state.bind = true; } }; ``` ## How a design is published When the user selects **Publish**, UI Builder: 1. Serializes every instance with its configuration. Each instance can change its data in the `stringify` handler. 2. Replaces each component in `components` with the address of its `render.html`. 3. With **Download components' to the source in compiling** on in [Global settings](/uibuilder/1-0/reference/global-settings/), downloads each `render.html` and puts its source into the design, without the readme and the settings. The published page loads `render.html` from its address, so the file must stay there, on a server that allows requests from the page (CORS). A component created in the editor has no address: its source goes into the design. ## Clean the configuration Remove what the published design does not need in `stringify`. The second argument is `true` when the design is published. ```js instance.on('stringify', function(meta, isbuild) { if (isbuild) delete meta.config.note; }); ``` ## Where a published design runs The page from **Download HTML** loads the Total.js UI library and the UI Builder runtime and builds the design with `UIBuilder.build()`. An app can do the same with the `_render.json` file. See [App reference](../app-api/). --- title: Edit text on the canvas project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/canvas-editing/ updated: 2026-11-19T11:56:01.259Z --- # Edit text on the canvas > Let the user change the text of your component straight on the canvas. **Headline** and **Paragraph** let the user double-click their text and type. Your component can do the same with `instance.edit()`. This works in the editor only. ## Make text editable ```js exports.config = { html: 'Enter text' }; exports.make = function(instance, config, element) { element.html('

{0}

'.format(config.html)); element.on('dblclick', '.text', function(e) { e.stopPropagation(); e.preventDefault(); instance.edit(this, { multiline: true }); }); instance.on('html', function() { config.html = element.find('.text').html(); }); }; ``` `instance.edit(el, options)` makes the element editable. The user ends with Enter, Esc, Tab or a click outside. UI Builder then emits `html`, and the handler stores the new text in the configuration, so the design keeps it. ## Options | Option | Meaning | |---|---| | `multiline` | Enter makes a new line; Shift+Enter ends. | | `format` | Allows bold, italic, underline and links. On by default. | | `bold`, `italic`, `underline`, `link` | `false` turns off one kind of formatting. | | `icon` | Allows inserting an icon. On when `format` is on. | | `placeholder` | An element that is hidden while the text is not empty. | | `cursor` | `'end'` puts the cursor at the end of the text. | With `format` on, the user makes a link of the selected text with Ctrl+L (Cmd+L on a Mac), and inserts an icon with Ctrl+P. ## Icons and links **Paragraph** also opens the icon picker when the user clicks an icon, and the link form when the user clicks a link: ```js element.on('click', '.ti', function() { UIBuilder.emit('icon', this); }); element.on('click', 'a', function(e) { e.preventDefault(); UIBuilder.emit('link', this); }); ``` After a change, UI Builder emits `html` on the instance, as after editing the text. --- title: Styles and libraries project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/styles-and-assets/ updated: 2026-11-19T11:56:16.260Z --- # Styles and libraries > Style a component without affecting others, and load external scripts and styles. ## Styles Put the CSS in ` ``` UI Builder replaces `CLASS` with the class name of the component, so the styles apply only to it. The same name is `cls`, the fourth argument of `exports.make`. Use it for your own class names: ```js element.html('
'.format(cls)); ``` The templates set CSS variables such as `--radius`, and the Total.js UI library gives the page its fonts and helper classes. The state of an instance adds classes such as `UI_invalid`; see [Values and data binding](../values-and-binding/). ## External libraries List scripts and styles in `exports.import`. UI Builder loads each address once, before it builds the instances: ```js exports.import = ['https://cdnjs.cloudflare.com/ajax/libs/apexcharts/3.36.3/apexcharts.min.js', 'https://cdnjs.cloudflare.com/ajax/libs/apexcharts/3.36.3/apexcharts.min.css']; ``` The charts load ApexCharts this way, and **Map** loads Leaflet. Put `exports.import` in `render.html` too, because the published design reads only that file. An address that starts with `/` is read from the server of UI Builder in the editor, and from the server of the page in a published design. ## Images and other files Put the files in the folder of the component and use their full path, for example `/components/greeting/logo.png`. When the component is shared in the official repository, its paths of the form `/components//` are changed to the published address. See [Share a component](../share/). --- title: Your own catalogue project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/own-catalogue/ updated: 2026-11-19T11:56:16.260Z --- # Your own catalogue > Offer your components in the Import components window, and let some appear only in some kinds of design. **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](/uibuilder/1-0/recipes/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](/files/Jaq7NF2S061f.webp) ## The list ```json [ { "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." } ] ``` | Field | Meaning | |---|---| | `id` | The id of the component, the same as `exports.id`. | | `name`, `group`, `icon`, `author`, `version` | What the window shows. Components are grouped by `group` and sorted by name. | | `url` | The address of `editor.html`. An address that starts with `/` is read from the server of UI Builder. | | `readme` | The text of **Read me**. | | `type` | Optional. 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: ```text 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](../share/). ## A list for a template The `components` of a design can also hold the address of a JSON object that maps ids to addresses: ```json { "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. --- title: Test a component project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/testing/ updated: 2026-11-19T11:56:16.260Z --- # Test a component > Try a component in the editor and in a published design, and find errors. A component has two sides, so test both: the editor and the published design. ## In the editor 1. Put the files in the `public` folder of UI Builder, for example `public/components/greeting/`. 2. Import `editor.html` with **Import custom**. See [Your first component](../first-component/). 3. Drag the component onto the canvas, open its settings and change every field. 4. After you change a file, select **Re-load components** in the toolbar. The canvas is built again with the new code and the current design. Test the component inside a **Form** if it holds a value, and with a component that follows it, such as **To JSON** with **Read value from** set to `@` and its id. ## In a published design 1. Select **Publish**, then **Download HTML**. 2. Put the downloaded page on the same server as the component, for example in `public/`, and open it in the browser. 3. Use the component as a visitor would. Check the value, the validation and the outputs. The published page loads `render.html` from the address that the design names, so a page opened from your disk cannot read a component on another server unless that server allows it (CORS). ## Find errors Open the console of your browser. UI Builder writes its messages there, starting with `UIBuilder:`: | Message | Cause | |---|---| | `The component "..." not found` | The design uses a component that did not load, for example because its file has an error. | | `Output "..." not found in the "..." component` | `instance.output()` names an output that the component does not declare. In a published design, the declaration in `render.html` counts. | | `Invalid component content` (in the editor) | The address does not return a file with `exports.id` and `exports.make`. | An error in the code of a component stops the component from loading, and the instances inside it are not shown. Use `instance.error(err)` to log an error with the name of the component and of the instance. The `app` object of the page is available in the console as `app`: `app.instances` lists every instance, and `app.find(id)` returns one. See [App reference](../app-api/). --- title: Share a component with the official repository project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/share/ updated: 2026-11-19T11:56:16.260Z --- # Share a component with the official repository > Prepare a component for the official repository and how the catalogue is built from it. The official components live in the public GitHub repository [totaljs/uibuildercomponents](https://github.com/totaljs/uibuildercomponents). When your component is useful to others, you can offer it there, and after it is accepted it appears in **Import components** of every UI Builder. ## How the repository is organized | Path | What it holds | |---|---| | `components//` | One folder for each component, with `editor.html`, `render.html` and `settings.html`. | | `db.json` | The catalogue. | | `db.js` | The script that builds `db.json` from the folders. | | `cdn.js` | The script that prepares the published files. | ## Prepare your component 1. Name the folder after `exports.id`, in lowercase, for example `components/stepper/`. 2. Write each of `exports.id`, `exports.name`, `exports.group`, `exports.author`, `exports.icon`, `exports.version`, `exports.color`, `exports.type` and `exports.floating` that you use on one line that ends with a semicolon. The scripts read these lines one by one. 3. Write a `` in `editor.html`. It is copied into the catalogue and shown under **Read me**. 4. Put your name in `exports.author`. 5. Use `exports.render = 'auto'` and `exports.settings = 'auto'` with `render.html` and `settings.html`. 6. Refer to files of the component as `/components//`. 7. Follow the coding standards that the repository links in its README. ## How the catalogue is built `db.js` reads `editor.html` of every folder and writes `db.json`, sorted by name. Run it from the repository folder after `npm install total4`: ```bash node db.js ``` `cdn.js` prepares the published files: it copies the folders, changes the paths `/components//` to the published address, and writes the catalogue with `type` and `floating`. It also writes the lists of the templates: `app.json` and `dashboard.json` with the components that have no `type` or name that type, and `flowboard.json` with the floating ones and those of type `flowboard`. The published address of a component is: ```text https://cdn.componentator.com/uibuilder//editor.html ``` ## Offer it Fork the repository on GitHub, add your component folder on a branch, and open a pull request with a short description of what the component does. ## Change a component later Raise `exports.version` with every change, so that users can see which version they have. --- title: Component declaration reference project: UI Builder version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/uibuilder/1-0/development/component-api/ updated: 2026-11-20T06:51:57.969Z --- # Component declaration reference > Every property that the script of a component declares on exports. The `