tlp-modal-footer-large
.data-dismiss="modal"
attribute in the modal
will close it.var the_modal = tlp.modal('element-id');
.
This will return a Modal
instance. You can then call
show()
,
hide()
, or
toggle()
methods on this instance.
the_modal.show()
method an event tlp-modal-shown
is dispatched.the_modal.hide()
method an event tlp-modal-hidden
is dispatched.When true, enables closing the modal when pressing the
When true, destroys the event listeners when hiding the modal. Useful when for example you create new modals on a button click.