Skip to content

Commit 1999e43

Browse files
committed
docs(CModal): update API documentation
1 parent 502536e commit 1999e43

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

packages/coreui-vue/src/components/modal/CModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const CModal = defineComponent({
100100
default: true,
101101
required: false,
102102
},
103-
/*
103+
/**
104104
* By default the component is unmounted after close animation, if you want to keep the component mounted set this property to false.
105105
*/
106106
unmountOnClose: {

packages/docs/api/modal/CModal.api.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ import CModal from '@coreui/vue/src/components/modal/CModal'
88

99
#### Props
1010

11-
| Prop name | Description | Type | Values | Default |
12-
| ---------------------- | -------------------------------------------------------------------------------- | --------------- | -------------------------------------------------- | ------- |
13-
| **alignment** | Align the modal in the center or top of the screen. | string | `'top'`, `'center'` | 'top' |
14-
| **backdrop** | Apply a backdrop on body while offcanvas is open. | boolean\|string | `'static'` | true |
15-
| **content-class-name** | A string of all className you want applied to the modal content component. | string | - | - |
16-
| **fullscreen** | Set modal to covers the entire user viewport | boolean\|string | `boolean`, `'sm'`, `'md'`, `'lg'`, `'xl'`, `'xxl'` | - |
17-
| **keyboard** | Closes the modal when escape key is pressed. | boolean | - | true |
18-
| **scrollable** | Create a scrollable modal that allows scrolling the modal body. | boolean | - | |
19-
| **size** | Size the component small, large, or extra large. | string | `'sm'`, `'lg'`, `'xl'` | - |
20-
| **transition** | Remove animation to create modal that simply appear rather than fade in to view. | boolean | - | true |
21-
| **visible** | Toggle the visibility of alert component. | boolean | - | |
11+
| Prop name | Description | Type | Values | Default |
12+
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------- | -------------------------------------------------- | ------- |
13+
| **alignment** | Align the modal in the center or top of the screen. | string | `'top'`, `'center'` | 'top' |
14+
| **backdrop** | Apply a backdrop on body while offcanvas is open. | boolean\|string | `'static'` | true |
15+
| **content-class-name** | A string of all className you want applied to the modal content component. | string | - | - |
16+
| **fullscreen** | Set modal to covers the entire user viewport | boolean\|string | `boolean`, `'sm'`, `'md'`, `'lg'`, `'xl'`, `'xxl'` | - |
17+
| **keyboard** | Closes the modal when escape key is pressed. | boolean | - | true |
18+
| **scrollable** | Create a scrollable modal that allows scrolling the modal body. | boolean | - | |
19+
| **size** | Size the component small, large, or extra large. | string | `'sm'`, `'lg'`, `'xl'` | - |
20+
| **transition** | Remove animation to create modal that simply appear rather than fade in to view. | boolean | - | true |
21+
| **unmount-on-close** | By default the component is unmounted after close animation, if you want to keep the component mounted set this property to false. | boolean | - | true |
22+
| **visible** | Toggle the visibility of alert component. | boolean | - | |
2223

2324
#### Events
2425

packages/docs/components/modal.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ Toggle a working modal demo by clicking the button below. It will slide down and
8181
}
8282
</script>
8383
```
84-
85-
8684
### Static backdrop
8785

8886
If you set `backdrop` property to `static`, your modal will behave as though the backdrop is static, meaning it will not close when clicking outside it. Click the button below to try it.

0 commit comments

Comments
 (0)