Widget Example

Started by pilotboy72, July 26, 2019, 08:24:39 PM

Previous topic - Next topic
Hi,

I'm interested in developing some widgets to use on the Lobby page.  Are there any examples from which I can draw to get started?

Brian

You can find the widgets here:

https://github.com/opnsense/core/tree/master/src/www/widgets

There are no tutorials but they are easy because you only need to create one file in include to register the widget and one in widgets (mind the naming) which contains the widget code.

The easiest way is to copy an existing one and adjust it for your needs.

Appreciate the pointers @fabian.