Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Widget Example
« previous
next »
Print
Pages: [
1
]
Author
Topic: Widget Example (Read 3756 times)
pilotboy72
Newbie
Posts: 40
Karma: 1
Widget Example
«
on:
July 26, 2019, 08:24:39 pm »
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
Logged
fabian
Moderator
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Widget Example
«
Reply #1 on:
July 27, 2019, 10:16:56 am »
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.
Logged
pilotboy72
Newbie
Posts: 40
Karma: 1
Re: Widget Example
«
Reply #2 on:
July 27, 2019, 06:44:47 pm »
Appreciate the pointers @fabian.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Widget Example