Skip to content

Commit

Permalink
Add CustomClass option in MultiSelectElement (#41)
Browse files Browse the repository at this point in the history
* Add CustomClass option in MultiSelectElement

Signed-off-by: Imtiaz Uddin <[email protected]>

* Revert lint cmd

Signed-off-by: Imtiaz Uddin <[email protected]>

---------

Signed-off-by: Imtiaz Uddin <[email protected]>
  • Loading branch information
Imtiaz246 authored Feb 26, 2025
1 parent 23f8b66 commit 0cd0e58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down
3 changes: 2 additions & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

/*
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit 0cd0e58

Please sign in to comment.