1.0.1 • Published 5 years ago

@mcanspinn/modal-x v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

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
 */
1.0.1

5 years ago

1.0.0

5 years ago