Skip to content

Introduction

Erizos Studio comes with a built-in interface editor called UI Builder. UI Builder is a drag-and-drop interface builder that allows you to quickly and easily create either auto-generated basic interfaces or fully customized templates using a rich set of components.

Script Editor

In addition to the available components, UI Builder includes a powerful Script Editor that allows you to add custom logic to your interfaces. These scripts can implement basic functionality, such as toggling UI components based on specific criteria, or more complex logic, such as fetching data from external sources and using that data to populate the interface.

Diff Mode

UI Builder's Script Editor includes a Diff mode (difference mode) that compares the script as you are editing it against the last version of the UI saved on the server. This feature improves safety, clarity, and confidence when editing scripts - especially in complex UI configurations.

Diff mode highlights what was added, removed, or modified, allowing you to clearly understand changes before saving them. It works similarly to the diff view in VS Code or Git-based tools.

To enable Diff mode:

  1. Open the script tab
  2. Click the Diff mode button in the script tab bar, next to the Modules dropdown

The code editor becomes a side-by-side diff editor: the last saved version of the script is shown on the left and the script you are currently editing on the right. Click the same button again to switch the diff off. The Editor canvas is not affected by Diff mode.

Note: If you have Scripts in your Modules, you can also review each script within Diff mode - the diff always follows the module whose tab is open.

Code Assist

Next to the Diff mode button, the Code Assist button opens an assistant panel beside the code editor. Type what you want in the input box at the bottom of the panel and click Send; the assistant answers with a proposal for the module that is currently open.

A proposal can change the script, the UI layout, or both. Script changes are shown in the same side-by-side diff view as Diff mode, so you can read them before they are applied. Use Accept to apply the proposal or Reject to discard it.

Code Assist needs an AI provider to be enabled first. If none is enabled, the input box is disabled and reads "Enable an AI provider in Settings > AI Models first." - use the button in the panel header to open the AI model settings. The panel header also shows which module the assistant is working on.


UI Types

UI Builder works with five kinds of UI. Template UIs and Show UIs are described below; Components, Libraries and Web Apps are reusable pieces that are attached to those UIs and are created and managed from the UI Manager.

Template UIs

A Template UI is linked to a specific template. The UI is presented to the graphics operator when a page of the template is selected in the playlist in Erizos Studio, or to the journalist when the template or page is selected in the MOS plugin of the News Room System.

Use cases: - Graphics control for specific templates - Template-specific data input - Per-page customization

Show UIs

A Show UI is linked to a specific show and allows you to customize a section of the main Erizos Studio interface when that show is opened. Unlike Template UIs, which are available only when a specific template or page is selected in the playlist, the Show UI is always visible while the show is open.

Use cases: - Global operator controls (clocks, scoreboards) - Show-wide settings and parameters - Always-available tools and utilities

Show UIs are useful when you need to provide global control to operators. For example, a clock and score control interface would be more suitable as a Show UI than a Template UI, as it needs to be readily available to the operator at any point in time.


Reusable Elements

UI Builder supports reusable elements for efficient workflow and consistent design:

Components

Components allow you to create and store common UI designs that are used across multiple UIs. This saves time by eliminating the need to recreate duplicate UI designs.

Benefits: - Create once, use many times - Update the instances in each UI that uses the component when the component is modified - Maintain consistency across multiple UIs

Example: You can create a UI component that reads the Pages available in your Playlist, then attach this component to any UI that needs this functionality.

Library

Libraries are useful for creating reusable code snippets that are used across multiple UIs. These snippets can be called and updated at any time, ensuring consistency and reducing redundant code.

Benefits:

  • Centralized code management
  • Easy updates across all UIs using the library
  • Improved maintainability

Web Apps

A Web App is a UI made of ordinary web files rather than drag-and-drop components: it is created with index.html, script.js and style.css instead of the usual Script module. Web Apps are attached to a UI from the same Add component dialog as Components. See Web App.


Getting Started

The UI Builder App menu (the hamburger button in the title bar) contains UI Manager, Import UI, Export UI, Publish UI and Delete UI. Ctrl+S saves the UI you have open and Ctrl+O opens the UI Manager.

To learn more about working with UI Builder, see: