New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mag-component-modal

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mag-component-modal

Base modal window with header element

1.0.13
latest
Source
npm
Version published
Maintainers
1
Created
Source

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.

Keywords

mag

FAQs

Package last updated on 17 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts