ng2-dashboard
Dashboard library for angular 2
Demo at: https://jaumard.github.io/ng2-dashboard/demo/dist/index.html
Installation
npm i ng2-dashboard// or with yarn yarn add ng2-dashboard
Usage
See demo source code here: https://github.com/jaumard/ng2-dashboard/tree/master/demo
Create my own widget
To do this you need to extend the WidgetComponent like this:
;; @ @ public widgetId: string; { superngEl renderer; }
The providers
part is mandatory, if you miss it your widget will not be see as a widget.
The @Input()
is also mandatory if you want to use removeById
because angular 2 doesn't inherit annotations yet.
To dynamically add your widget you also need to declare it under "entryComponents" on your app module like this:
;;; ;; @
Use custom drag handle
To do this, you can use the widgetHandle
directive to select witch handle you want from your template. Example:
Large widget [2, 1] handle only on this text All other stuff...
License
Support on Beerpay
Hey dude! Help me out for a couple of 🍻!