1.0.13 • Published 7 years ago
mag-component-modal v1.0.13
Modal component
Modal is a component to build user interface, an instance of Component module.
Installation
npm install mag-component-modalUsage
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
DEVELOPwhich 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.