Modal
A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
Default
PreviewCode
Custom
PreviewCode
Props
Universal Props
Prop | Type | Accepted Values | Description | Default Value | Version |
---|---|---|---|---|---|
title | string | - | Default dialog title text | Basic Title | - |
open | boolean | boolean | Whether the dialog is visible | false | - |
onClose | function(e) | - | Callback when clicking the close icon or cancel button | - | - |
okText | string | - | Text of the confirm button | 确定 | - |
cancelText | string | - | Text of the cancel button | 取消 | - |
containerStyles | object | - | Customize Modal container style | - | 0.3.2 |
headerStyles | object | - | Customize Modal header style | - | 0.3.2 |
footerStyles | object | - | Customize Modal footer style | - | 0.3.2 |
btnStyles | object | - | Customize Modal button style | - | 0.3.2 |
footerButtons | object | - | Customize Modal footer's button | - | 0.3.2 |
maskClosable | boolean | - | Enable to click mask to close modal | true | 0.3.4 |