32bf0415/html_components/edit-item.go
1970-01-01 00:00:00 +00:00

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
}