From 35e59b47e21fa7b96a7e7ec987f79e91ecec69fe Mon Sep 17 00:00:00 2001 From: Robert Mennell Date: Fri, 9 Nov 2018 08:35:55 +0800 Subject: [PATCH] Update snippets/ModalDialog.md Co-Authored-By: zhongdeming428 --- snippets/ModalDialog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/snippets/ModalDialog.md b/snippets/ModalDialog.md index 3488a712b..9673f093d 100644 --- a/snippets/ModalDialog.md +++ b/snippets/ModalDialog.md @@ -14,6 +14,7 @@ Before the component unmounted,Dialog removes the custom event from document ele Dialog exposed the `show` method via using `static` reserved keyword so that we can call it through Dialog class.The `show` method accepts a object parameter that contains three properties: `title`, `closeOnClick`, and `content`. * `title` is the text you wanna show as the title of the dialog,passed as a String. +* `closeOnClick` is a boolean to determine if the modal should close when clicked on(true), or only when the X button is pressed(false). * `content` is a jsx element.Dialog will render it.You can pass any content you want to show in the dialog. See the live demo on [stackblitz.com](https://stackblitz.com/edit/react-7yg2gr).