Panel is a component to build user interface, an instance of Component module. Recommended to use with component-panel-set.
npm install mag-component-panelAdd 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
})
]
});There is a global var
DEVELOPwhich activates additional consistency checks and protection logic not available in release mode.
If you have any problems or suggestions please open an issue according to the contribution rules.
mag-component-panel is released under the MIT License.