kangarooxin / jquery.dialog.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery.dialog.js

Useage:

Local

$('dialog').jqueryDialog();

Remote

$.jqueryDialog({
    url: url
});

Template (need underscore or lodash)

$.jqueryDialog({
    template: true,
    data: {}
});

Options:

$.fn.jqueryDialog.defaults = {
    cancel: ".close",
    template: false,
    data: {},
    zIndex: 10000,
    url: false,
    autoClose: false,
    opacity: 0.8,
    background: '#000',
    top: '50%',
    onCountDown: function(seconds, $dialog) {

    },
    onShow: function($dialog) {

    },
    onClose: function($dialog) {

    }
};

About


Languages

Language:JavaScript 100.0%