A JS widget framework built on top of the jQuery Widget Factory pattern at Mondo Robot.
Install via Bower"
bower install https://github.com/mondorobot/gretzky.git
or add to your project's bower.json
file:
"dependencies": {
"gretzky": "0.0.1"
...
Then include it in your project:
bower install
Then include base.js
and factory.js
your HTML template:
<script src="<path/to/base.js>"></script>
<script src="<path/to/factory.js>"></script>
Create widgets that inherit from the base widget class:
$.widget('mondo.*YourWidgetNameHere*', $.mondo.base, { ...`
- Call
window.WidgetFactory.refresh()
to instantiate/refresh widgets
- jQuery
- jQuery UI (just the Widget module)
- Vanilla JS (at least v5.0)