input

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAttribute = errors.New("invalid attribute provided for input type")

Functions

This section is empty.

Types

type DataList added in v0.0.2

type DataList struct {
	*tinydom.Element
}

func NewDataList added in v0.0.2

func NewDataList(id string, options []string) *DataList

type Input

type Input struct {
	*tinydom.Element
	// contains filtered or unexported fields
}

func FromElement added in v0.0.3

func FromElement(e *tinydom.Element) *Input

func New

func New(inputType InputType) *Input

func NewTextInput

func NewTextInput() *Input

func (*Input) Autocomplete added in v0.0.2

func (i *Input) Autocomplete() bool

func (*Input) Autofocus added in v0.0.2

func (i *Input) Autofocus() bool

func (*Input) Checked added in v0.0.2

func (i *Input) Checked() string

func (*Input) For added in v0.0.2

func (i *Input) For() string

func (*Input) FormEnctype added in v0.0.2

func (i *Input) FormEnctype() string

func (*Input) FormNoValidate added in v0.0.2

func (i *Input) FormNoValidate() string

func (*Input) FormTarget added in v0.0.2

func (i *Input) FormTarget() string

func (*Input) Height added in v0.0.2

func (i *Input) Height() string

func (*Input) List added in v0.0.2

func (i *Input) List() string

func (*Input) Max added in v0.0.2

func (i *Input) Max() string

func (*Input) MaxLength added in v0.0.2

func (i *Input) MaxLength() string

func (*Input) Min added in v0.0.2

func (i *Input) Min() string

func (*Input) Pattern added in v0.0.2

func (i *Input) Pattern() string

func (*Input) Required added in v0.0.2

func (i *Input) Required() string

func (*Input) SetAutocomplete added in v0.0.2

func (i *Input) SetAutocomplete(b bool) *Input

func (*Input) SetAutofocus added in v0.0.2

func (i *Input) SetAutofocus(b bool) *Input

func (*Input) SetChecked added in v0.0.2

func (i *Input) SetChecked(checked string) *Input

func (*Input) SetFor added in v0.0.2

func (i *Input) SetFor(value string) *Input

func (*Input) SetFormEnctype added in v0.0.2

func (i *Input) SetFormEnctype(value string) error

func (*Input) SetFormNoValidate added in v0.0.2

func (i *Input) SetFormNoValidate() error

func (*Input) SetFormTarget added in v0.0.2

func (i *Input) SetFormTarget(value tinydom.Target) error

func (*Input) SetHeight added in v0.0.2

func (i *Input) SetHeight(v string) *Input

func (*Input) SetList added in v0.0.2

func (i *Input) SetList(value string) *Input

func (*Input) SetMax added in v0.0.2

func (i *Input) SetMax(max string) *Input

func (*Input) SetMaxLength added in v0.0.2

func (i *Input) SetMaxLength(length string) *Input

func (*Input) SetMin added in v0.0.2

func (i *Input) SetMin(min string) *Input

func (*Input) SetPattern added in v0.0.2

func (i *Input) SetPattern(pattern string) *Input

func (*Input) SetRequired added in v0.0.2

func (i *Input) SetRequired(required string) *Input

func (*Input) SetStep added in v0.0.2

func (i *Input) SetStep(step string) *Input

func (*Input) SetValue

func (i *Input) SetValue(v string) *Input

func (*Input) SetWidth added in v0.0.2

func (i *Input) SetWidth(v string) *Input

func (*Input) Step added in v0.0.2

func (i *Input) Step() string

func (*Input) Value

func (i *Input) Value() string

func (*Input) Width added in v0.0.2

func (i *Input) Width() string

type InputType

type InputType string
const (
	ButtonInput   InputType = "button"
	CheckboxInput InputType = "checkbox"
	ColorInput    InputType = "color"
	DateInput     InputType = "date"
	LocalInput    InputType = "datetime-local"
	EmailInput    InputType = "email"
	FileInput     InputType = "file"
	HiddenInput   InputType = "hidden"
	ImageInput    InputType = "image"
	MonthInput    InputType = "month"
	NumberInput   InputType = "number"
	PasswordInput InputType = "password"
	RadioInput    InputType = "radio"
	RangeInput    InputType = "range"
	ResetInput    InputType = "reset"
	SearchInput   InputType = "search"
	SubmitInput   InputType = "submit"
	TelInput      InputType = "tel"
	TextInput     InputType = "text"
	TimeInput     InputType = "time"
	UrlInput      InputType = "url"
	WeekInput     InputType = "week"
)

Jump to

Keyboard shortcuts

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