All docs
V18.2
24.2
The page you are viewing does not exist in version 24.2.
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
The page you are viewing does not exist in version 19.2.
19.1
The page you are viewing does not exist in version 19.1.
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

jQuery/JS Common - utils - ui - Overlay - Methods

This section describes methods exposed by the DevExpress.ui.dxOverlay object.

baseZIndex(zIndex)

Specifies the base z-index for all overlay widgets.

import { dxOverlay.baseZIndex } from "devextreme/ui/overlay"
Parameters:
zIndex:

Number

The z-index value.

The z-index of all overlay widgets located on a page is calculated based on the value passed to this method. Since an overlay widget is added, its z-index is increased by one relative to a previously added overlay widget.

The following example demonstrates how to call the method.

DevExpress.ui.dxOverlay.baseZIndex(2000);
// ===== or when using modules =====
import * as overlay from 'devextreme/ui/overlay';
overlay.baseZIndex(2000);

By default, the base z-index for all overlay widgets except Toast is 1500.

NOTE
The base z-index for Toast widgets is greater than the value specified by this method by 8000. For example, if you pass 2000 to the baseZIndex method, the Toast base z-index is 10000.

The method affects the following widgets.