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

mag-component-layout

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mag-component-layout

Base layout implementation.

1.2.1
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Layout component

build status npm version dependencies status devDependencies status Gitter

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

Installation

npm install mag-component-layout

Usage

Add the constructor to the scope:

var Layout = require('mag-component-layout');

Create layout instance:

var layout = new Layout({
    data: [
        'Some text',
         {
            className: 'icon star',
            name: '$starIcon'
         },
         {
            value: new Button({value:'Ok'}),
            name: 'okButton'
         },
         new Button({value:'Cancel'})
    ]
});

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-layout is released under the MIT License.

Keywords

mag

FAQs

Package last updated on 24 May 2021

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