Skip to content
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)):

_mb.show(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'});

_mb.hide();

  • this is also called by, hitting the ESC key, clicking close button, or anything outside the content wrap.

Clone this wiki locally