From 0cd0e5879e9a1c0eb2c5e1e7276ecac5c1168691 Mon Sep 17 00:00:00 2001 From: Imtiaz Uddin <59226374+Imtiaz246@users.noreply.github.com> Date: Wed, 26 Feb 2025 14:39:17 +0600 Subject: [PATCH] Add CustomClass option in MultiSelectElement (#41) * Add CustomClass option in MultiSelectElement Signed-off-by: Imtiaz Uddin * Revert lint cmd Signed-off-by: Imtiaz Uddin --------- Signed-off-by: Imtiaz Uddin --- Makefile | 2 +- types.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index edadde3..f175ff9 100644 --- a/Makefile +++ b/Makefile @@ -218,7 +218,7 @@ lint: $(BUILD_DIRS) --env GO111MODULE=on \ --env GOFLAGS="-mod=vendor" \ $(BUILD_IMAGE) \ - golangci-lint run --enable $(ADDTL_LINTERS) --deadline=10m --exclude-files="generated.*\.go$\" --exclude-dirs-use-default + golangci-lint run --enable $(ADDTL_LINTERS) --deadline=10m --skip-files="generated.*\.go$\" --skip-dirs-use-default $(BUILD_DIRS): @mkdir -p $@ diff --git a/types.go b/types.go index 4c48b88..b797843 100644 --- a/types.go +++ b/types.go @@ -903,6 +903,7 @@ type MultiselectElement struct { If string `json:"if,omitempty"` OnChange string `json:"onChange,omitempty"` Required bool `json:"required,omitempty"` + CustomClass string `json:"customClass,omitempty"` } /* @@ -976,7 +977,7 @@ type Editor struct { } type AnchorElement struct { - CustomClass string `json:"customClass"` + CustomClass string `json:"customClass,omitempty"` Label *Label `json:"label,omitempty"` Type string `json:"type"` URL AnchorURL `json:"url"`