Modal dialogs using MDL and jQuery
Switch branches/tags
Nothing to show
Clone or download
Latest commit ecfd29e Mar 23, 2017
Permalink
Failed to load latest commit information.
LICENSE
README.md Added options.onHidden to be used as a callback for the hideDialog() … Mar 23, 2017
demo.html Update tested versions Nov 7, 2016
mdl-jquery-modal-dialog.css
mdl-jquery-modal-dialog.js

README.md

Material Design Light jQuery Modal Dialog

Basic modal dialogs using MDL and jQuery

Dependencies

Usage / Configuration

showDialog({
    id: 'dialog-id',
    title: 'Title',
    text: 'Text',
    negative: {
        id: 'cancel-button',
        title: 'Cancel',
        onClick: function() { ... }
    },
    positive: {
        id: 'ok-button',
        title: 'OK',
        onClick: function() { ... }
    },
    cancelable: true,
    contentStyle: {'max-width': '500px'},
    onLoaded: function() { ... },
    onHidden: function() { ... }
});

Most parameters are optional.

Demo

License

© Oliver Rennies, 2015. Licensed under an MIT license.