@@ -39,15 +39,26 @@ root.render(
3939``` typescript
4040import { Modals } from ' @ui5/webcomponents-react/Modals' ;
4141
42+ // Recommended: using config object
43+ const { ref, close } = Modals .showDialog (props , config );
44+
45+ // Legacy: using container directly
4246const { ref, close } = Modals .showDialog (props , container );
4347```
4448
4549** Parameters**
4650
47- | Parameter | Description |
48- | ------------- | ------------------------------------------------------------------------------------- |
49- | ` props ` | All supported ` Dialog ` props (see table below). ` open ` will always be set to ` true ` . |
50- | _ ` container ` _ | Optional container where the ` Dialog ` should be mounted. Defaults to ` document.body ` . |
51+ | Parameter | Description |
52+ | ------------- | ------------------------------------------------------------------------------------------------------- |
53+ | ` props ` | All supported ` Dialog ` props (see table below). ` open ` will always be set to ` true ` . |
54+ | _ ` config ` _ | Optional configuration object. See config options below. |
55+ | _ ` container ` _ | _ (deprecated)_ Optional container where the ` Dialog ` should be mounted. Use ` config.container ` instead. |
56+
57+ ** Config Options** _ (since 2.19.0)_
58+
59+ | Property | Description |
60+ | ----------- | -------------------------------------------------------------------------------------- |
61+ | ` container ` | Optional container where the component should be mounted. Defaults to ` document.body ` . |
5162
5263** Return Value**
5364
@@ -71,15 +82,27 @@ The `showDialog` method returns an object with the following properties:
7182``` typescript
7283import { Modals } from ' @ui5/webcomponents-react/Modals' ;
7384
85+ // Recommended: using config object
86+ const { ref, close } = Modals .showPopover (props , config );
87+
88+ // Legacy: using container directly
7489const { ref, close } = Modals .showPopover (props , container );
7590```
7691
7792** Parameters**
7893
79- | Parameter | Description |
80- | ------------- | -------------------------------------------------------------------------------------- |
81- | ` props ` | All supported ` Popover ` props (see table below).` open ` will always be set to ` true ` . |
82- | _ ` container ` _ | Optional container where the ` Popover ` should be mounted. Defaults to ` document.body ` . |
94+ | Parameter | Description |
95+ | ------------- | -------------------------------------------------------------------------------------------------------- |
96+ | ` props ` | All supported ` Popover ` props (see table below). ` open ` will always be set to ` true ` . |
97+ | _ ` config ` _ | Optional configuration object. See config options below. |
98+ | _ ` container ` _ | _ (deprecated)_ Optional container where the ` Popover ` should be mounted. Use ` config.container ` instead. |
99+
100+ ** Config Options** _ (since 2.19.0)_
101+
102+ | Property | Description |
103+ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
104+ | ` container ` | Optional container where the component should be mounted. Defaults to ` document.body ` . |
105+ | ` autoClosePopovers ` | If set to ` true ` , opening a new Popover will automatically close all currently opened Popovers that share the same opener. Only affects Popover, Menu, and ResponsivePopover. |
83106
84107** Return Value**
85108
@@ -103,15 +126,27 @@ The `showPopover` method returns an object with the following properties:
103126``` typescript
104127import { Modals } from ' @ui5/webcomponents-react/Modals' ;
105128
129+ // Recommended: using config object
130+ const { ref, close } = Modals .showResponsivePopover (props , config );
131+
132+ // Legacy: using container directly
106133const { ref, close } = Modals .showResponsivePopover (props , container );
107134```
108135
109136** Parameters**
110137
111- | Parameter | Description |
112- | ------------- | ------------------------------------------------------------------------------------------------ |
113- | ` props ` | All supported ` ResponsivePopover ` props (see table below). ` open ` will always be set to ` true ` . |
114- | _ ` container ` _ | Optional container where the ` ResponsivePopover ` should be mounted. Defaults to ` document.body ` . |
138+ | Parameter | Description |
139+ | ------------- | ------------------------------------------------------------------------------------------------------------------ |
140+ | ` props ` | All supported ` ResponsivePopover ` props (see table below). ` open ` will always be set to ` true ` . |
141+ | _ ` config ` _ | Optional configuration object. See config options below. |
142+ | _ ` container ` _ | _ (deprecated)_ Optional container where the ` ResponsivePopover ` should be mounted. Use ` config.container ` instead. |
143+
144+ ** Config Options** _ (since 2.19.0)_
145+
146+ | Property | Description |
147+ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
148+ | ` container ` | Optional container where the component should be mounted. Defaults to ` document.body ` . |
149+ | ` autoClosePopovers ` | If set to ` true ` , opening a new Popover will automatically close all currently opened Popovers that share the same opener. Only affects Popover, Menu, and ResponsivePopover. |
115150
116151** Return Value**
117152
@@ -137,19 +172,31 @@ The `showResponsivePopover` method returns an object with the following properti
137172``` typescript
138173import { Modals } from ' @ui5/webcomponents-react/Modals' ;
139174
175+ // Recommended: using config object
176+ const { ref, close } = Modals .showMenu (props , config );
177+
178+ // Legacy: using container directly
140179const { ref, close } = Modals .showMenu (props , container );
141180```
142181
143182** Parameters**
144183
145- | Parameter | Description |
146- | ------------- | ----------------------------------------------------------------------------------- |
147- | ` props ` | All supported ` Menu ` props (see table below). ` open ` will always be set to ` true ` . |
148- | _ ` container ` _ | Optional container where the ` Menu ` should be mounted. Defaults to ` document.body ` . |
184+ | Parameter | Description |
185+ | ------------- | ----------------------------------------------------------------------------------------------------- |
186+ | ` props ` | All supported ` Menu ` props (see table below). ` open ` will always be set to ` true ` . |
187+ | _ ` config ` _ | Optional configuration object. See config options below. |
188+ | _ ` container ` _ | _ (deprecated)_ Optional container where the ` Menu ` should be mounted. Use ` config.container ` instead. |
189+
190+ ** Config Options** _ (since 2.19.0)_
191+
192+ | Property | Description |
193+ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
194+ | ` container ` | Optional container where the component should be mounted. Defaults to ` document.body ` . |
195+ | ` autoClosePopovers ` | If set to ` true ` , opening a new Popover will automatically close all currently opened Popovers that share the same opener. Only affects Popover, Menu, and ResponsivePopover. |
149196
150197** Return Value**
151198
152- The ` Menu ` method returns an object with the following properties:
199+ The ` showMenu ` method returns an object with the following properties:
153200
154201| Property | Description |
155202| --------- | ---------------------------------------------------------------- |
@@ -169,15 +216,26 @@ The `Menu` method returns an object with the following properties:
169216``` typescript
170217import { Modals } from ' @ui5/webcomponents-react/Modals' ;
171218
219+ // Recommended: using config object
220+ const { ref, close } = Modals .showMessageBox (props , config );
221+
222+ // Legacy: using container directly
172223const { ref, close } = Modals .showMessageBox (props , container );
173224```
174225
175226** Parameters**
176227
177- | Parameter | Description |
178- | ------------- | ----------------------------------------------------------------------------------------- |
179- | ` props ` | All supported ` MessageBox ` props (see table below). ` open ` will always be set to ` true ` . |
180- | _ ` container ` _ | Optional container where the ` MessageBox ` should be mounted. Defaults to ` document.body ` . |
228+ | Parameter | Description |
229+ | ------------- | ----------------------------------------------------------------------------------------------------------- |
230+ | ` props ` | All supported ` MessageBox ` props (see table below). ` open ` will always be set to ` true ` . |
231+ | _ ` config ` _ | Optional configuration object. See config options below. |
232+ | _ ` container ` _ | _ (deprecated)_ Optional container where the ` MessageBox ` should be mounted. Use ` config.container ` instead. |
233+
234+ ** Config Options** _ (since 2.19.0)_
235+
236+ | Property | Description |
237+ | ----------- | -------------------------------------------------------------------------------------- |
238+ | ` container ` | Optional container where the component should be mounted. Defaults to ` document.body ` . |
181239
182240** Return Value**
183241
@@ -201,19 +259,30 @@ The `showMessageBox` method returns an object with the following properties:
201259``` typescript
202260import { Modals } from ' @ui5/webcomponents-react/Modals' ;
203261
262+ // Recommended: using config object
263+ const { ref } = Modals .showToast (props , config );
264+
265+ // Legacy: using container directly
204266const { ref } = Modals .showToast (props , container );
205267```
206268
207269** Parameters**
208270
209- | Parameter | Description |
210- | ------------- | ----------------------------------------------------------------------------------- |
211- | ` props ` | All supported ` Toast ` props(see table below). |
212- | _ ` container ` _ | Optional container where the ` Toast ` should be mounted.Defaults to ` document.body ` . |
271+ | Parameter | Description |
272+ | ------------- | ------------------------------------------------------------------------------------------------------ |
273+ | ` props ` | All supported ` Toast ` props (see table below). |
274+ | _ ` config ` _ | Optional configuration object. See config options below. |
275+ | _ ` container ` _ | _ (deprecated)_ Optional container where the ` Toast ` should be mounted. Use ` config.container ` instead. |
276+
277+ ** Config Options** _ (since 2.19.0)_
278+
279+ | Property | Description |
280+ | ----------- | -------------------------------------------------------------------------------------- |
281+ | ` container ` | Optional container where the component should be mounted. Defaults to ` document.body ` . |
213282
214283** Return Value**
215284
216- The` showToast ` method returns an object with the following properties:
285+ The ` showToast ` method returns an object with the following properties:
217286
218287| Property | Description |
219288| -------- | ----------------------------------------------------------------- |
0 commit comments