mag-component-panel

2.0.2 • Public • Published

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.

Package Sidebar

Install

npm i mag-component-panel

Weekly Downloads

3

Version

2.0.2

License

MIT

Unpacked Size

51.6 kB

Total Files

26

Last publish

Collaborators

  • magsdk