Skip to content

aheinze/Simplebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplebox

... just a simple box.

Usage

$.simplebox.show(content, {
    //settings
    'title'     : false,
    'closeOnEsc': true,
    'theme'     : 'default',
    'height'    : 'auto',
    'width'     : 'auto',
    'speed'     : 500,
    'easing'    : 'swing',
    'buttons'   : false,

    //events
    'beforeShow'  : function(){},
    'beforeClose' : function(){},
    'onClose'     : function(){}
});

where content could be a string, dom element or jQuery element.

Shortcuts

  • Alert

    $.simplebox.alert("...")

  • Confirm

    $.simplebox.confirm("...", function(){ //your callback code });

Releases

No releases published

Packages

No packages published