Filter for default dashboard widgets #15130
Replies: 2 comments 1 reply
-
https://github.com/netbox-community/netbox/blob/v3.7.2/netbox/extras/dashboard/widgets.py#L215-L228 From that, I would guess (untested) that you add
Quick check of the encoding:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast feedback. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've searched around, but either I missed it or it has been asked before. I also could not find an answer immediately in the Netbox docs.
I already created our DEFAULT_DASHBOARD in configuration.py
I would like to create some custom widgets, but filtered or sorted.
For example:
I would like to create a widget, containing only the racks with a specific role, and sorted in order of last updated (last updated rack first)
I assume I need to add the filter and/or sorting in the 'config': { } section, but what is the syntax?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions