Javascript modal quick reference

Considering the example below:

<script src=""></script>
<link rel="stylesheet" href="" type="text/css" />

<div id="modal"></div>

var myModal = jSuites.modal(document.getElementById('modal'));

Available Methods

Method Description the modal
myModal.close()Close the modal

Initialiation properties

Property Description
url: stringOpen the content from a remote URL.
closed: booleanCreate the modal but keep it closed.
width: numberThe width size of your modal
height: numberThe height size of your modal
title: stringThe title shown of your modal


Event Description
onopenA method is execute when the modal is opened.
(element: HTMLElement, instance: JSON) => void
oncloseA method is execute when the modal is closed.
(element: HTMLElement, instance: JSON) => void