Skip to content

magsdk/component-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Panel component

build status npm version dependencies status devDependencies status Gitter

Panel is a component to build user interface, an instance of Component module. Recommended to use with component-panel-set.

Installation

npm install mag-component-panel

Usage

Add the constructor to the scope:

var Panel = require('mag-component-panel');

Create instance with custom config:

var panel = new Panel({
        title: [
            {
                value: _('Menu'),
                className: 'name'
            }
        ],
        events: {
            focus: function () {}
        },
        children: [
            new LayoutList({
                cycle: true,
                data: [],
                fixedData: true,
                size: 6
            })
        ]
    });

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