On this page
Angular Modal Component
Angular Modal component offers a lightweight, multi-purpose popup to add dialogs to yours. Learn how to customize Angular CoreUI Modals easily. Multiple examples and tutorial.
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
| Size | Property value | Modal max-width |
| ---- | ----------- | ---- |
| Small | `sm` | `300px` |
| Default | _none_ | `500px` |
| Large | `lg` | `800px` |
| Extra Large | `xl` | `1140px` |
Loading...
Loading...
| `fullscreen` value | Availability |
| ---- | ----------- |
| `true` | _Always_ |
| `sm` | _Below_ `576px` |
| `md` | _Below_ `768px` |
| `lg` | _Below_ `992px` |
| `xl` | _Below_ `1200px` |
| `xxl` | _Below_ `1400px` |
Loading...
Loading...
| name | description | type | default |
| ---- | ----------- | ---- | ------- |
| `alignment` | Align the modal in the center or top of the screen. | `top` \| `center` | _top_ |
| `backdrop` | Apply a backdrop on body while modal is open. | `boolean` \| `static` | _true_ |
| `fullscreen` | Set modal to cover the entire user viewport. | `boolean` \| `sm` \| `md` \| `lg` \| `xl` \| `xxl` |_undefined_|
| `id` | Html id attr, required for programmatic modal visibility change. | `string` | **required** |
| `keyboard` | Closes the modal when escape key is pressed. | `boolean` |_true_|
| `size` | Size the component small, large, or extra large. | `sm` \| `lg` \| `xl` |_undefined_|
| `transition` | Remove animation to create modal that simply appear rather than fade in to view. | `boolean` |_true_|
| `scrollable` | Create a scrollable modal that allows scrolling the modal body. | `boolean` |_false_|
| `visible` | Toggle the visibility of modal component. | `boolean` |_undefined_|
| `role` | Html role for modal | `string` |_dialog_|
| `aria-modal` | Set aria-modal html attr for modal. | `string` |_true_|
##### Outputs
| name | description | type |
| ---- | ----------- | ---- |
| `visibleChange` | Event emitted on `visible` change. | `boolean` |
### c-modal-body
_component_
### c-modal-footer
_component_
### c-modal-header
_component_
### cModalTittle
_directive_
### cModalToggle
_directive_
##### Inputs
| name | description | type | default |
| ---- | ----------- | ---- | ------- |
| `cModalToggle` | Html element id attr of modal to dismiss. | `string` | **required** |