form

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	*tinydom.Element
}

func New

func New() *Form

func (*Form) SetAction

func (f *Form) SetAction(action string)

func (*Form) SetMethod

func (f *Form) SetMethod(method Method)

func (*Form) SetTarget

func (f *Form) SetTarget(target Target)

type Method

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

func (Method) String

func (m Method) String() string

type Target

type Target string
const (
	Blank  Target = "_blank"
	Self   Target = "_self"
	Parent Target = "_parent"
	Top    Target = "_top"
)

func (Target) String

func (t Target) String() string

Jump to

Keyboard shortcuts

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