wv-modal
Purpose
<wv-modal/>
. Presents a modal window. The element is operated with the help of JS Event it listens to. Used in conjunction with <wv-modal-body/>
and <wv-modal-footer/>
Properties
name | description |
---|---|
backdrop |
object type: default value: is required: Sets the modal's backdrop property according to the Bootstrap reference. Options are: |
id |
object type: default value: is required: Html ID you may need to set to the rendered element |
position |
object type: default value: is required: Sets the modal position in the viewport. Options are: Top, VerticallyCentered |
size |
object type: default value: is required: Sets the modal width size. Options are: Normal, Small, Large, ExtraLarge, Full |
title |
object type: default value: is required: The title of the modal. |
Javascript Event Listeners
action | description |
---|---|
open or show |
This action will open the modal. Example:
If there are one or more modals on the page you need to set the correct
|
close or hide |
This action will close the modal. Example:
If there are one or more modals on the page you need to set the correct
|
Example
<wv-modal title="SQL Result" id="modal-sql-result" size="Large">
<wv-modal-body>
...
</wv-modal-body>
<wv-modal-footer>
...
</wv-modal-footer>
</wv-modal>