mag-component-modal

1.0.13 • Public • Published

Modal component

build status npm version dependencies status devDependencies status Gitter

Modal is a component to build user interface, an instance of Component module.

Installation

npm install mag-component-modal

Usage

Add component to the scope:

var Modal = require('mag-component-modal');

Create instance with custom config:

page.modal = new Modal({
    title: 'My Title',
    icon: 'star',
    children: [new Button({value: 'Create'})]
});

Add component to the page and show it:

page.add(page.modal);
page.modal.show();

Development mode

There is a global var DEVELOP which activates additional consistency checks and protection logic not available in release mode.

Contribution

If you have any problems or suggestions please open an issue according to the contribution rules.

License

mag-component-modal is released under the MIT License.

Package Sidebar

Install

npm i mag-component-modal

Weekly Downloads

0

Version

1.0.13

License

MIT

Unpacked Size

28.9 kB

Total Files

26

Last publish

Collaborators

  • magsdk