Content-Length: 271839 | pFad | http://github.com/magsdk/component-panel/blob/master/readme.md

71 component-panel/readme.md at master · magsdk/component-panel · GitHub
Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.98 KB

readme.md

File metadata and controls

68 lines (46 loc) · 1.98 KB

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.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/magsdk/component-panel/blob/master/readme.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy