DavidRWB
(David W-B)
1
Hi,
I’m building some custom widgets and would like to reuse existing widgets, eg widget-selection, widget-switch etc…
Is there documentation which lists all the options and configuration you can pass to each widget?
I’ve looked in the documentation but couldn’t find it.
Thanks for reading
DavidRWB
(David W-B)
2
I couldn’t find any documentation, but I did find a way to see what values can be set.
For anyone reading this who also wants to know: -
- You can add a normal widget on your panel dashboard then save it.
- Then go to PaperUI, Configuration, Services, UI, HabPanel
- You’ll see the JSON in there with whatever options you set.
- You can then use that as a starting point for your custom widget ng-init settings on an embedded widget.
Or alternatively, check in your browser’s local storage.
I hope this helps
Twonky
(Rene)
3
A brief example would be awesome!
I’ve been trying to reuse a simple button widget but failed so far. Probably some really easy mistake, but if you are not used to the whole system…