form

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidTagAppended = errors.New("invalid tag appended")

Functions

This section is empty.

Types

type FieldSet added in v0.0.2

type FieldSet struct {
	*tinydom.Element
}

func NewFieldSet added in v0.0.2

func NewFieldSet(legendArgs ...string) *FieldSet

NewFieldSet creates a new fieldset element. Optionally a legend can be passed. the string is being used as innerHTML

func (*FieldSet) Append added in v0.0.2

func (f *FieldSet) Append(elements ...*tinydom.Element) error

Check https://www.w3schools.com/html/html_form_elements.asp for valid tags

type Form

type Form struct {
	*tinydom.Element
}

func New

func New() *Form

func (*Form) Append added in v0.0.2

func (f *Form) Append(elements ...*tinydom.Element) error

Check https://www.w3schools.com/html/html_form_elements.asp for valid tags

func (*Form) SetAction

func (f *Form) SetAction(action string) *Form

func (*Form) SetMethod

func (f *Form) SetMethod(method Method) *Form

func (*Form) SetNoValidate added in v0.0.2

func (f *Form) SetNoValidate() *Form

type Method

type Method string
const (
	GET  Method = "get"
	POST Method = "post"
)

func (Method) String

func (m Method) String() string

type Output added in v0.0.2

type Output struct {
	*tinydom.Element
}

func NewOutput added in v0.0.2

func NewOutput(name string, forValue ...string) *Output

Jump to

Keyboard shortcuts

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