templforms

package module
v0.0.0-...-4d6a512 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 5 Imported by: 0

README

templforms

Form segments for golang templ language

Documentation

Overview

templ: version: v0.2.648

templ: version: v0.2.648

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawInput

func RawInput(name, inputType string, fieldValue interface{}, options *InputOptions) templ.Component

func RawOption

func RawOption(option Option) templ.Component

func RawOptionGroup

func RawOptionGroup(option OptionGroup) templ.Component

func RawOptions

func RawOptions(options []Option) templ.Component

func RawSelect

func RawSelect(name string, selectOptions *SelectOptions) templ.Component

Types

type GenericOptions

type GenericOptions struct {
	ID       string
	Disabled bool
	Required bool
	Class    string
	Attr     templ.Attributes
}

type InputOptions

type InputOptions struct {
	GenericOptions
	Placeholder string
	FirstLoad   bool
	FieldError  error
}

type Option

type Option struct {
	Value    string
	Label    string
	Selected bool
	Disabled bool
}

type OptionGroup

type OptionGroup struct {
	Label    string
	Disabled bool
}

type SelectOptions

type SelectOptions struct {
	GenericOptions
	Multiple bool
	Size     int
}

Directories

Path Synopsis
templ: version: v0.2.648
templ: version: v0.2.648

Jump to

Keyboard shortcuts

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