Loader custom component setup

task brazil Updated Sep 10, 2026 3 min read loader-custom-component-uib-setup.md
Raw file servicenow.com

The Loader custom component enables users to create a context-specific loading experience by placing a custom Lottie animation with an optional progress bar and label.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: workspace_admin or ui_builder_admin

Procedure

  1. Define a label for Loader custom that differentiates it from other components in the content tree.

    A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants. [Omitted image "loader-custom-content-tree.png"] Alt text: Loader custom in the UI Builder content tree.

  2. Select the Loader custom component using one of these methods:

    • Click anywhere within the component on the page.
    • Select the label you created for your component in the content tree. The configuration options appear in the panel on the right.

    [Omitted image "loader-custom-config.png"] Alt text: Loader custom in the UI Builder configuration panel.

Parent Topic:UIB Setup Information

Loader custom component properties

Configure Loader custom by setting these properties.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Label [property]

Description

Animation properties[configAnimation]

A JSON object that holds all the information needed to render the animation. It contains the following properties:- src (string, sets the source of the animation file)

  • tokenID (string, identifies the token associated with the animation)
  • loop (boolean, determines whether the animation loops)
  • autoplay (boolean, determines whether the animation starts automatically)

Label [property]

Description

Label[label]

Optional label that displays with the animation.

Announce label[announceLabel]

Enable this property to announce the label when the component is rendered (for screen reader users).Default: False

Label [property]

Description

Size[size]

Sets the size of the progress bar and label to accompany the animation. Options include Small, Medium, and Large.Default: Medium

Progress bar properties[progressBarProps]

An object that holds all the information needed to render the progress bar. It contains the following properties:- pathType (string)

Choices are:

-   **initial**
-   **positive**
-   **alert**
-   **error**
-   **inactive**
-   **pink**
-   **green**
-   **orange**
-   **gray**
  • max (number)

The maximum value for the progress bar, representing the full extent of the task.

  • value (number)

The current value of the progress bar, representing the progress of the task.

Default: No default value

## Loader custom component events

Select event handlers to configure the events provided with the Loader custom component. Event handlers work with data resources to link the Loader custom actions to the data you want to display to your users.

The Events tab shows the events used by the Loader custom component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Loader custom actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

Event descriptions

Event

Description

Loader custom animation visible[NOW_LOADER_CUSTOM#ANIMATION_VISIBLE]

Dispatched when the Lottie animation is rendered on the page.

Search documentation
Search document titles and file paths on the brazil branch