Events
| Property | Type | Description |
|---|---|---|
onConfirm | function | (optional) For variant confirmation, handle the confirm action click. Provided with the mouse event and the Modal function close as arguments. |
onDecline | function | (optional) For variant confirmation, handle the decline action click. Provided with the mouse event and the Modal function close as arguments. |
Dialog also includes the same events as Modal, only formatted as camel case.
| Property | Type | Description |
|---|---|---|
onOpen | function | (optional) This event gets triggered once the modal shows up. Returns the modal id: { id }. |
onClose | function | (optional) This event gets triggered once the modal gets closed. Returns the modal id: { id, event, triggeredBy }. |
onClosePrevent | function | (optional) This event gets triggered once the user tries to close the modal, but preventClose is set to true. Returns a callback close you can call to trigger the close mechanism. More details below. Returns the modal id: { id, event, close: Method, triggeredBy }. |