From ddaef5d203f5fc1ace3799b5de8b641c5492a78f Mon Sep 17 00:00:00 2001 From: YikJiun Lee Date: Fri, 21 Feb 2025 17:37:16 +0800 Subject: [PATCH] feat(obs-lib): add filterable and min width property --- observability-lib/grafana/overrides.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/observability-lib/grafana/overrides.go b/observability-lib/grafana/overrides.go index 4ea4b14c1..ade119b96 100644 --- a/observability-lib/grafana/overrides.go +++ b/observability-lib/grafana/overrides.go @@ -129,6 +129,13 @@ func NewLinksProperty(options *LinksPropertyOptions) *Property { } } +func NewFilterableProperty(value bool) *Property { + return &Property{ + ID: "filterable", + Value: value, + } +} + func NewHiddenProperty(value bool) *Property { return &Property{ ID: "custom.hidden", @@ -143,6 +150,13 @@ func NewWidthProperty(value float64) *Property { } } +func NewMinWidthProperty(value float64) *Property { + return &Property{ + ID: "custom.minWidth", + Value: value, + } +} + type CellOptionsMode string const (