form

package
v1.0.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkbox

func Checkbox(args CheckboxArgs) templ.Component

func Date

func Date(args DateArgs) templ.Component

func Errors

func Errors(errors []string) templ.Component

func Field

func Field(args FieldArgs, labelFor string) templ.Component

func FieldHelpID added in v1.0.59

func FieldHelpID(fieldName string) string

func RadioGroup

func RadioGroup(args RadioGroupArgs) templ.Component

func Select

func Select(args SelectArgs) templ.Component

func SelectRepeat

func SelectRepeat(args SelectRepeatArgs) templ.Component

func Tags

func Tags(args TagsArgs) templ.Component

func Text

func Text(args TextArgs) templ.Component

func TextArea

func TextArea(args TextAreaArgs) templ.Component

func TextRepeat

func TextRepeat(args TextRepeatArgs) templ.Component

func TextRepeatWithAutocomplete

func TextRepeatWithAutocomplete(args TextRepeatWithAutocompleteArgs) templ.Component

Types

type CheckboxArgs

type CheckboxArgs struct {
	FieldArgs
	Value   string
	Checked bool
}

type DateArgs

type DateArgs struct {
	FieldArgs
	Value string
	Min   string
	Max   string
}

type FieldArgs

type FieldArgs struct {
	Label     string
	Name      string
	Readonly  bool
	Tooltip   string
	Required  bool
	Error     string
	Cols      int
	Help      string
	Theme     Theme
	AutoFocus bool
}

type Option

type Option = struct {
	Label string
	Value string
}

type RadioGroupArgs

type RadioGroupArgs struct {
	FieldArgs
	Value   string
	Options []Option
}

type SelectArgs

type SelectArgs struct {
	FieldArgs
	Value       string
	EmptyOption bool
	Options     []Option
}

type SelectRepeatArgs

type SelectRepeatArgs struct {
	FieldArgs
	Values      []string
	EmptyOption bool
	Options     []Option
}

type TagsArgs

type TagsArgs struct {
	FieldArgs
	Values []string
}

type TextAreaArgs

type TextAreaArgs struct {
	FieldArgs
	Value string
	Rows  int
}

type TextArgs

type TextArgs struct {
	FieldArgs
	Value string
}

type TextRepeatArgs

type TextRepeatArgs struct {
	FieldArgs
	Values []string
}

type TextRepeatWithAutocompleteArgs

type TextRepeatWithAutocompleteArgs struct {
	FieldArgs
	Values          []string
	AutocompleteURL string
}

type Theme

type Theme int
const (
	ThemeHorizontal Theme = iota
	ThemeVertical
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL