Skip to content

Commit 1dcfc84

Browse files
authored
fix: open/close instead of openModal/closeModal (windmill-labs#516)
1 parent 7414fd7 commit 1dcfc84

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/apps/3_app-runnable-panel.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,46 +329,46 @@ Where 'a' is the id of the component and 1 is the index of the tab to set.
329329
/>
330330
<br/>
331331

332-
### openModal
332+
### open
333333

334-
Use the `openModal` function to open a modal.
334+
Use the `open` function to open a modal or drawer.
335335

336336
Syntax:
337337

338338
```js
339-
openModal(id: string)
339+
open(id: string)
340340
```
341341

342342
Parameters:
343343

344344
`id` string
345-
The id of the modal component to open.
345+
The id of the modal or drawer component to open.
346346

347347
Example:
348348

349349
```js
350-
openModal('a');
350+
open('a');
351351
```
352352

353-
### closeModal
353+
### close
354354

355-
Use the `closeModal` function to close a modal.
355+
Use the `close` function to close a modal.
356356

357357
Syntax:
358358

359359
```js
360-
closeModal(id: string)
360+
close(id: string)
361361
```
362362

363363
Parameters:
364364

365365
`id` string
366-
The id of the modal component to close.
366+
The id of the modal or drawer component to close.
367367

368368
Example:
369369

370370
```js
371-
closeModal('a');
371+
close('a');
372372
```
373373

374374
### recompute

0 commit comments

Comments
 (0)