--- title: Modeless dialog component setup description: The Modeless dialog component is a window, when triggered by a user, appears as an overlay. It enables users to interact with both the main content and window content.The Modeless dialog component is a window that appears as an overlay when triggered by a user. It enables users to interact with both the main content and window content.If you have chosen a preset containing events, data handlers for those events are pre-selected by the controller and no manual configuration is required. If the component has events that aren't included in the preset, you must add data handlers manually to configure those events. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/modeless-dialog-component-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 5 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # Modeless dialog component setup The Modeless dialog component is a window, when triggered by a user, appears as an overlay. It enables users to interact with both the main content and window content. ## 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md). **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 Modeless dialog 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md). 2. Select the Modeless dialog 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. **Parent Topic:**[UIB Setup Information](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md) ## Modeless dialog component properties The Modeless dialog component is a window that appears as an overlay when triggered by a user. It enables users to interact with both the main content and window content. To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type. - **Data binding**: Enables you to create dynamic property values derived from multiple sources, such as state variables \(@state\) in the page, URL variables \(@context\), or payloads from a data resource \(@data\). For details, see [Add and configure data resources to a page](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md). - **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
| Label \[property\] | Description |
|---|---|
| Variant \[variant\] | Sets the header content styles. Choices are: - **initial** - **primary** - **secondary** Default: **initial**. |
| Size \[size\] | Sets the header content size. Choices are: - **small** - **medium** Default: **medium**. |
| Width \[width\] | Initial width of the dialog in pixels. Default: **380**. |
| Height \[height\] | Initial height of the dialog in pixels. Default: **600**. |
| Position \[position\] | The position of the dialog, on the page, when triggered. Choices available are: - **unset** - **top-left** - **top-right** - **centered** - **bottom-right** - **bottom-left** Default: **unset**, the dialog goes back to center position with respect to the page. |
| Offset \[offset\] | Number of pixels to shift the dialog toward the center of the screen. The first value is the horizontal offset. The second value is the vertical offset. Each value must be zero \(0\) or above. You can use this property when the **Position** property is set to **top-left**, **top-right**, **bottom-left**, or **bottom-right**.Default: **\[0,0\]**. |
| Opened \[opened\] | Determines whether the dialog is open by default. To have the dialog open, set to **true**.Default: **false**. |
| Fit content \[fitContent\] | To have the size of the dialog automatically adjust based on its content, set to **true**.Default: **false**. |
| Enable drag\[enableDrag\] | To enable the user to drag the dialog, set to **true**. User can drag the dialog by grabbing the header or footer area \(if available\). Default: **false**. |
| Show close \[canClose\] | To enable the close button, set to **true**. Default: **false**. |
| Show minimize\[canMinimize\] | To enable the minimize button, set to **true**. Default: **false**. |
| Show maximize \[canMaximize\] | To enable the maximize button, set to **true**. Default: **false**. |
| Heading \[headingLabel\] | Heading label \(title\) for the dialog. Overwrites the default heading slot. |
| Heading icon \[headingIcon\] | Icon that appears next to the dialog Heading label. |
| Resizable config\[resizableConfig\] | Whether the modeless dialog dynamically resizes as a user types beyond the size of the dialog, along with the ability to set the resizable minimum and maximum heights. When set to **false**, the modeless dialog doesn't dynamically resize.Default: **true**. |