Tab filter component setup

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

The Tab filter component enables users to filter search results based on defined sources and sort the results based on configured fields.

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: admin or ui_builder_admin

Procedure

  1. Define a label for Tab filter 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 "tab-filter-content-tree.png"] Alt text: Shows the tab filter component in the UIB content tree

  2. Select the Tab filter 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 "tab-filter-properties.png"] Alt text: Shows the Config panel with the tab filter component properties

Parent Topic:UIB Setup Information

Tab filter component properties

Define the search and sort filters for the Tab filter component.

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

Label [property]

Description

Search filters[searchFilters]

The searchFilters response from the Search Filter GraphQL API; it contains the data for tab items with a sysId and a label.

Selected filter tab[selectedFilters]

Specifies the ID of the selected filter tab. If this property is not passed in, the All filter tab is selected by default.

Sort filters[sortFilters]

Response from the Search Filter GraphQL API; it contains the data for sort by filter items with sysId and label.

Selected sort filter[selectedSortFilters]

Specifies the ID of the selected sort filter. If this property is not passed in, the Relevancy filter is selected in the sort by filter dropdown by default.

## Tab filter component events

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

The Events tab shows the events used by the Tab filter 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 Tab filter 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.

[Omitted image "tab-filter-events.png"] Alt text: Shows tab filter events with event handlers defined

Event descriptions

Event

Description

Tab filter selected

Dispatched when the user selects a tab filter.The payload includes selectedFilter, which contains the JSON stringified array containing the sys_id of the tab filter selected by the user.

Sort filter selected

Dispatched when the user selects a sort filter.The payload includes the selectedFilter, which contains the JSON stringified array containing the sys_id of the sort filter selected by the user.

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