Modal













Parameters





 * {{{models-Modal-size|Size of the modal. Accepted values are,  ,   and.
 * {{{models-Modal-size|Size of the modal. Accepted values are,  ,   and.


 * {{{models-Modal-content-1|Content of the modal.}}}
 * {{{models-Modal-content-2|If set to a string, it represents the HTML the modal contains.}}}
 * {{{models-Modal-content-3|If set to an object while UI-js is imported, it runs the object through the  function and sets the generated HTML as the modal's content.}}}
 * {{{models-Modal-content-note|Note: DOM events set on the nodes through UI-js will get unregistered, as the library calls  on the node.}}}
 * {{{models-Modal-content-note|Note: DOM events set on the nodes through UI-js will get unregistered, as the library calls  on the node.}}}


 * {{{models-Modal-title|Title of the modal. By default set to "Modal". This is safe by default unless  is set, in that case it must be escaped properly.}}}
 * {{{models-Modal-title|Title of the modal. By default set to "Modal". This is safe by default unless  is set, in that case it must be escaped properly.}}}


 * {{{models-Modal-isHTML|Whether the title of the modal is passed as HTML.}}}
 * {{{models-Modal-isHTML|Whether the title of the modal is passed as HTML.}}}


 * {{{models-Modal-buttons|Array of objects representing parameters to the  model.}}}
 * {{{models-Modal-buttons|Array of objects representing parameters to the  model.}}}


 * {{{models-Modal-events-1|Events registered in the modal. These events can be called by modal buttons.}}}
 * {{{models-Modal-events-2|By default, Fandom's modal component registers a  event called when the close button is clicked.}}}
 * {{{models-Modal-events-2|By default, Fandom's modal component registers a  event called when the close button is clicked.}}}


 * or