Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

adds folderId to dashlist #379

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions grafonnet/dashlist.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* @param tags (optional) Array of tag(s) to search by
* @param recent (default `true`) Displays recently viewed dashboards
* @param search (default `false`) Description of the panel
* @param folderId (optional) Id of the folder in which to search for dashboards, only effective with `search` set to `true`
* @param starred (default `false`) Displays starred dashboards
* @param headings (default `true`) Chosen list selection(starred, recently Viewed, search) is shown as a heading
* @param limit (default `10`) Set maximum items in a list
Expand All @@ -24,6 +25,7 @@
recent=true,
search=false,
starred=false,
folderId,
headings=true,
limit=10,
):: {
Expand All @@ -37,5 +39,6 @@
headings: headings,
limit: limit,
[if description != null then 'description']: description,
[if folderId != null then 'folderId']: folderId,
},
}