Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.02 KB

README.md

File metadata and controls

38 lines (33 loc) · 1.02 KB

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.