34 lines
764 B
Go
34 lines
764 B
Go
package html_components
|
|
|
|
type EditItemInputType string
|
|
|
|
const (
|
|
EditItemInputTypeText InputType = "text"
|
|
EditItemInputTypeBool InputType = "bool"
|
|
EditItemInputTypeInt InputType = "int"
|
|
EditItemInputTypeEnum InputType = "enum"
|
|
EditItemInputTypeDateTime InputType = "dateTime"
|
|
EditItemInputTypeImage InputType = "image"
|
|
)
|
|
|
|
type EditItemInputs struct {
|
|
Label string
|
|
Value string
|
|
Name string
|
|
Type InputType
|
|
Options []SelectInputOption
|
|
HideLabel bool
|
|
}
|
|
|
|
type EditItem struct {
|
|
Id string
|
|
Title string
|
|
Url string
|
|
CancelUrl string
|
|
IsCreate bool
|
|
Inputs []EditItemInputs
|
|
SubmitButtonLabel string
|
|
HasFileUpload bool
|
|
FromTable bool
|
|
}
|