Panel set is a component to build user interface, an instance of Component module. Use with mag-component-panel.
npm install mag-component-panel-set
Add the singleton to the scope:
var PanelSet = require('mag-component-panel-set');
Create instance with custom config:
var panelSet = new PanelSet({
visible: false,
// list of mag-component-panel panels
panels: [leftPanel, rightPanel]
});
There is a global var
DEVELOP
which activates additional consistency checks and protection logic not available in release mode.
If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.
mag-component-panel-set
is released under the MIT License.