Skip to content

magsdk/component-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Base layout list implementation.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 6