Update snippets/ModalDialog.md
Co-Authored-By: zhongdeming428 <zhongdeming428@163.com>
This commit is contained in:
@ -4,7 +4,6 @@ Renders a dialog component with modal.
|
||||
|
||||
This is a simple React ModalDialog Component that is called and controlled through events
|
||||
|
||||
* `closeOnClick` prop determines whether we can close the dialog via clicking on modal.
|
||||
|
||||
Benefits from the CustomEvent API,this ModalDialog component supports single instance usage.We just need import `Dialog` once time,and can call the dialog everywhere.Every time we wanna show the dialog,we just call the static function `Dialog.show`.Passing our jsx templates and data as the parameter and then the dialog will show with the data and templates rendered.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user