UI Builder tutorial
Learn how to use the basics of UI Builder to create a page called My Tutorial.
Before you begin
Role required: ui_builder_admin
In this UI Builder tutorial, you perform the following tasks to build a page in UI Builder:
- Start UI Builder.
- Create a page for your workspace or custom portal experience. For more information about creating pages, see Create a page in UI Builder.
- Change the layout of the page to have two columns. For more information, see Organize components in UI Builder pages.
- Build your page by adding two container components.
- Rename your container components in the content tree.
- Add a Heading component and a Button component to the first container. Add a data visualization component to the second container. For more information about components, see Customize UI Builder pages using components.
- Configure your components as follows:
- Link the button to the ServiceNow® website.
- Connect the Data visualization component to a data source to display task data. For more information about data resources, see Dynamically expose data in UI Builder pages (advanced feature).
- Save your page often.
- Preview your page to see how it looks in a browser.
Procedure
Navigate to All > Now Experience Framework > UI Builder.
You can also type
UI Builderdirectly in the Filter navigator.From the UI Builder home page, choose an experience you want to work in.
If you don’t see any experiences listed in which to work, contact your administrator to get access to an experience or create an experience. For more information, see Configure how users interact with your applications in UI Builder.
Create a page.
| To do this task | Do the following |
|---|---|
| Create a page |
Image omitted: create-page-icon.png Create page button on the experience view page.</p>
Image omitted: create-page-scratch.png Create from scratch instead button.</p>
Image omitted: tutorial-name-page.png Create a page called My tutorial page.</p>
|
Congratulations! You created your tutorial page! The page is empty of content. You add components to the page to build functionality to it. Components are the building blocks of a page. UI Builder comes with many components ready for you to add to your page. Components can be as simple as a **Heading**, or as complex as a **List**.
Change the layout of the page to a two-column layout.
For more information about layouts, see Organize components in UI Builder pages.
| To do this task | Do the following |
|---|---|
| Change the layout of the page to two columns |
Image omitted: qs-add-component.png Pointer selecting + Add content in the content tree.</p>
Image omitted: tutorial-two-columns-select.png Arrow pointing to the two columns layout in the toolbox.</p>
|
- Add a Heading component, and a Button component to the left column.
| To do this task | Do the following |
|---|---|
| Add a heading component to your left-column container | You can add components to the page in different ways. For more information on the ways you can add components to your page, see Table 1.1. Select the + button in the middle of the left column. 2. Type Heading in the search field. 3. Select the Heading component to add it to your container. A heading component is a way to add text or a title to your page. 4. Select Add. 5. Select the component name in the configuration panel to see the Component label and Component ID. You can change these to anything you want, as long as they’re unique. 6. Select Apply. 7. Configure your Heading component. Component authors configure components to expose the appropriate properties required to set up their components. - Set the style to Header-primary. The Style changes the class of the heading text, like font, weight, and color. For example, if you select Header-secondary, the text is smaller. Different headings sizes are useful if you have two headings and want the second heading smaller that the primary heading. - Enter My Tutorial as the heading text in the Label field. - Leave the Level as 1. |
| Add and configure a button component to your left-column container | Add a Button component to your page. Configure the button by changing the text and the way that it looks. Then change what happens when you click the button by adding an event handler for the button. The event handler adds an action to the button to link to the ServiceNow® home page. So when you click the button, the ServiceNow® home page opens in a new tab of your browser. For more information about configuring components, see Components.
For more information on adding components to your page, see Table 1.
Image omitted: tutorial-event-handler-add.png Arrow pointing to the + Add event handler link.</p>
Image omitted: tutorial-button-event.png Configured event handler for the button component.</p> For more information about event handlers, see Manage actions in UI Builder pages.
|
You added and configured the **Heading** and **Button** component for your page.
Add a Data visualization component to the container.
A data visualization component contains data that you display in a visual manner. Configure the data visualization component parameters. Then, add a data resource to it.
| To do this task | Do the following |
|---|---|
| Add and configure a data visualization component to your right-column container | You can add components to the page in different ways. For more information on the ways you can add components to your page, see Table 1.1. Select the + button in the middle of the right column. 2. In the Search field, start typing Image omitted: tutorial-data-vis-add.gif Adding the data source to the data visualization component.</p>
|
You’ve added a **Data visualization** component to the right column and configured it. You also added a data resource to bring in customer account data.
- Save the new page one last time.
| To do this task | Do the following |
|---|---|
| Save your page |
|
- Now preview your page to see what it looks like in a browser.
| To do this task | Do the following |
|---|---|
| Preview your page |
Image omitted: tutorial-preview.gif Selecting Preview to view the tutorial page.</p></td></tr></tbody> Result
Parent Topic:Exploring UI Builder |