1.0.1 • Published 7 years ago
spa-component-widget v1.0.1
Widget component
Widget is a component to build user interface, an instance of Component module.
Installation
npm install spa-component-widgetUsage
Add the constructor to the scope:
var Widget = require('spa-component-widget');Create invisible widget:
var widget = new Widget({
$node: window.pmInfoWidget
});Show it:
widget.show();Development mode
There is a global var
DEVELOPwhich 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
spa-component-widget is released under the MIT License.