From b35fcad148d7c237efedfe00f6aee362fc49ff48 Mon Sep 17 00:00:00 2001 From: Arnob Kumar Saha Date: Thu, 31 Oct 2024 17:12:17 +0600 Subject: [PATCH] Add ui-builder missing fields (#29) Signed-off-by: Arnob kumar saha --- types.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/types.go b/types.go index a54a136..fac32c2 100644 --- a/types.go +++ b/types.go @@ -447,6 +447,7 @@ type InputElement struct { ValidationRuleObject *ValidationRule `json:"validationRuleObject,omitempty"` Fetch string `json:"fetch,omitempty"` InputType string `json:"inputType,omitempty"` + Description *Description `json:"description,omitempty"` } type ValidationRule struct { @@ -549,6 +550,7 @@ type SelectElement struct { KeepEmpty bool `json:"keepEmpty,omitempty"` AddNewButton *AddNewButton `json:"add_new_button,omitempty"` Refresh bool `json:"refresh,omitempty"` + HasGroup *bool `json:"hasGroup,omitempty"` Sortable bool `json:"sortable,omitempty"` DisableUnselect bool `json:"disableUnselect,omitempty"` } @@ -667,11 +669,17 @@ type SingleStepForm struct { Element *SingleStepFormElement `json:"element,omitempty"` CustomClass string `json:"customClass,omitempty"` ShowLabel bool `json:"show_label,omitempty"` - HideForm bool `json:"hideForm,omitempty"` + HideForm *bool `json:"hideForm,omitempty"` Computed string `json:"computed,omitempty"` KeepEmpty bool `json:"keepEmpty,omitempty"` ToggleOption *ToggleOption `json:"toggleOption,omitempty"` OnChange string `json:"onChange,omitempty"` + Accordion *bool `json:"accordion,omitempty"` + Description *Description `json:"description,omitempty"` +} + +type Description struct { + Text *string `json:"text,omitempty"` } type ToggleOption struct {