-
Notifications
You must be signed in to change notification settings - Fork 1
Methods
Beecher edited this page Sep 29, 2015
·
4 revisions
The following methods are available to you after init.
(or you can just call show(args) and the args will be passed to init(args)):
- advanced args :
var args = {
header: "header content with <span>markup</span>",
body: "body content with <span>markup</span>, if you're into that kinda thing ...",
footer: "footer content without markup, but this can take markup too.",
addClass : "the_class_you_want_to_add_to_the_wrap or_classes",
showFor : 5000 // number of milliseconds to show the modal for, before hiding it automatically
};- most basic example :
_mb.show({body : 'hello'});- this is also called by, hitting the
ESCkey, clicking close button, or anything outside the content wrap.