form

package
v0.0.0-...-977d426 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT 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 Show

func Show(props FormProps) templ.Component

Types

type FormAction

type FormAction struct {
	Method  string
	Action  string
	Actions FormActionsMap
}

type FormActionItem

type FormActionItem struct {
	Name   string
	Text   string
	Action string
}

type FormActionType

type FormActionType string
const PrimaryFormAction FormActionType = "primaryFormAction"
const SecondaryFormAction FormActionType = "secondaryFormAction"

type FormActionsMap

type FormActionsMap map[FormActionType]FormActionItem

type FormProps

type FormProps struct {
	base.ElementProps
	Action         FormAction
	EncodingType   string
	FloatingLabels bool
	IsNested       bool
}

func (FormProps) BuildClassNames

func (fp FormProps) BuildClassNames() (classes string)

func (FormProps) Disable

func (fp FormProps) Disable()

Jump to

Keyboard shortcuts

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