Skip to content

magsdk/component-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Base layout implementation.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors