Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
- Constants
- func InlineRadioGroup(componentSettings InlineRadioGroupSettings) templ.Component
- func InputField(componentSettings InputFieldSettings) templ.Component
- func MultiSelectInput(componentSettings MultiSelectInputSettings) templ.Component
- func RadioInput(componentSettings RadioInputSettings) templ.Component
- func SelectInput(componentSettings SelectInputSettings) templ.Component
- func TextArea(componentSettings TextAreaSettings) templ.Component
- type InlineRadioGroupSettings
- type InputFieldSettings
- type MultiSelectInputSettings
- type RadioInputSettings
- type SelectInputSettings
- type SelectLabelValueOption
- type TextAreaSettings
Constants ¶
View Source
const ( InputTypeColor string = "color" InputTypeDate string = "date" InputTypeEmail string = "email" InputTypeHidden string = "hidden" InputTypeMonth string = "month" InputTypeNumber string = "number" InputTypePassword string = "password" InputTypeTel string = "tel" InputTypeText string = "text" InputTypeTime string = "time" InputTypeUrl string = "url" InputTypeHintDisplayTooltip string = "tooltip" InputTypeHintDisplayDescription string = "description" )
View Source
const ( RadioInputSizeXs string = "xs" RadioInputSizeSm string = "sm" RadioInputSizeMd string = "md" RadioInputSizeLg string = "lg" RadioInputSizeXl string = "xl" )
View Source
const ( SelectInputSizeXs string = "xs" SelectInputSizeSm string = "sm" SelectInputSizeMd string = "md" SelectInputSizeLg string = "lg" SelectInputSizeXl string = "xl" )
View Source
const ( TextAreaSizeXs = "xs" TextAreaSizeSm = "sm" TextAreaSizeMd = "md" TextAreaSizeLg = "lg" TextAreaSizeXl = "xl" )
Variables ¶
This section is empty.
Functions ¶
func InlineRadioGroup ¶
func InlineRadioGroup(componentSettings InlineRadioGroupSettings) templ.Component
func InputField ¶
func InputField(componentSettings InputFieldSettings) templ.Component
func MultiSelectInput ¶ added in v0.1.7
func MultiSelectInput(componentSettings MultiSelectInputSettings) templ.Component
func RadioInput ¶
func RadioInput(componentSettings RadioInputSettings) templ.Component
func SelectInput ¶
func SelectInput(componentSettings SelectInputSettings) templ.Component
func TextArea ¶
func TextArea(componentSettings TextAreaSettings) templ.Component
Types ¶
type InlineRadioGroupSettings ¶
type InlineRadioGroupSettings struct {
Label string
InputSettings []RadioInputSettings
// OptionalFields
TwoWayStatePath string
InputId string
InputName string
}
type InputFieldSettings ¶
type InputFieldSettings struct {
InputType string
InputName string
Label string
// OptionalFields
TwoWayStatePath string
Value string
AffixLeftValue string
AffixLeftStatePath string
AffixRightValue string
AffixRightStatePath string
InputId string
InputNumberMin string
InputNumberMax string
InputNumberStep string
IsRequired bool
IsReadOnly bool
HintValue string
HintStatePath string
HintDisplay string
HintDisplayTooltipBackgroundColor string
}
type MultiSelectInputSettings ¶ added in v0.1.7
type MultiSelectInputSettings struct {
InputName string
Label string
// OptionalFields
FlatOptions []string
LabelValueOptions []SelectLabelValueOption
TwoWayStatePath string
InputId string
IsRequired bool
DropdownBackgroundColor string
HintValue string
HintStatePath string
HintDisplay string
HintDisplayTooltipBackgroundColor string
}
type RadioInputSettings ¶
type SelectInputSettings ¶
type SelectInputSettings struct {
InputName string
Label string
// OptionalFields
FlatOptions []string
LabelValueOptions []SelectLabelValueOption
TwoWayStatePath string
OnChangeFunc string
Size string
DropdownBackgroundColor string
InputId string
IsRequired bool
ShouldIncludeBlankOption bool
HintValue string
HintStatePath string
HintDisplay string
HintDisplayTooltipBackgroundColor string
}
type SelectLabelValueOption ¶
Click to show internal directories.
Click to hide internal directories.