Skip to content

mcanjs/modalX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modalX

Pure Javascript Lightweight Modal

Example code

    var header = 'hello';
    var body = 'body';
    var footer = 'footer';

    modalX.init( {
        auto: true,
        time: 1000,
        button: '.button',
        doms: [
            header,
            body,
            footer
        ],
        classes: [
            'half-height',
            'modalHeight'
        ],
        closable: true
    } );

Parameters

/**
 *
 * @param {boolean} auto : Module auto trigger or button triggered.
 * @param {number} time : Module delay time
 * @param {string} button : If module not auto triggered button selector.
 * @param {boolean} closable : Modal Close Button Active or Deactivated
 * @param {array} doms : Modal Header, Body, Footer set dom
 * @param {array} classes : Modal Parent Set Class Multiple or Single
 */

About

Pure Javascript Modal -- Lightweight --

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published