SemanticModal

App.SemanticModal. SemanticModal

new SemanticModal($elementopt, $modalContentopt, showCloseopt)

See:

Creates instance of App.SemanticModal

Parameters:
Name Type Attributes Description
$element jQuery <optional>

jquery element which has the content of modal and on click of this element modal is shown

$modalContent object <optional>

jquery element of modal content.

showClose boolean <optional>

defines wether to show close icon or not.

Methods

(static) initModals($elements, showClose) → {Array}

Parameters:
Name Type Description
$elements jQuery
showClose Boolean

if modal close icon is shown or not

Returns:

list of modal instances

Type
Array

(static) initModalsFromElement($element, showClose) → {Array}

Parameters:
Name Type Description
$element jQuery

parent element that has children with modal

showClose Boolean

if modal close icon is shown or not

Returns:

list of modal instances

Type
Array

destroy()