odama626 / mdl-jquery-modal-dialog

Modal dialogs using MDL and jQuery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Modal dialogs using MDL and jQuery

License:MIT License


Languages

Language:JavaScript 67.4%Language:HTML 26.3%Language:CSS 6.3%