@mcanspinn/modal-x

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mcanspinn/modal-x

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

43 kB

Total Files

17

Last publish

Collaborators

  • mcanspinn