A dialog alternative
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with aheinze:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
js
index.html
readme.markdown

readme.markdown

Topbox

... a dialog alternative.

Usage

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

    $.topbox.alert("...")

  • Confirm

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

  • Block UI

    $.topbox.blockUI("...", { title: "Blocking UI"});