Skip to content
/ Simplebox Public
forked from aheinze/Simplebox

Simple box is a lightweight lightbox-like jQuery plugin.

Notifications You must be signed in to change notification settings

FR6/Simplebox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplebox

Simple box is a lightweight lightbox-like jQuery plugin.

Usage

Open dialog:

$.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.

Close dialog:

$.simplebox.close();

Shortcuts

  • Alert

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

  • Confirm

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

Change log

2012/05/31: fixed: When the content is a hidden div, when the dialog is closed it leaves the content visible. added: Allow to open multiple dialogs (open a dialog from another dialog; when we close the second dialog, we reopen the first one).

About

Simple box is a lightweight lightbox-like jQuery plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%