Documentation ¶
Overview ¶
Package xform provides some shortcut funcs for various form related activites
Index ¶
- func InputButton(id, name string) *dom.HTMLInputElement
- func InputCheckbox(id string, value bool) *dom.HTMLInputElement
- func InputColor(id string) *dom.HTMLInputElement
- func InputDate(id string) *dom.HTMLInputElement
- func InputDateTime(id string) *dom.HTMLInputElement
- func InputDateTimeLocal(id string) *dom.HTMLInputElement
- func InputEmail(id, value string) *dom.HTMLInputElement
- func InputMonth(id string) *dom.HTMLInputElement
- func InputNumber(id string, min, max, value float64) *dom.HTMLInputElement
- func InputPassword(id, value string) *dom.HTMLInputElement
- func InputRadio(id, name string, value bool) *dom.HTMLInputElement
- func InputRange(id string, min, max, step, value float64) *dom.HTMLInputElement
- func InputSizeable(id, value string) *dom.HTMLSpanElement
- func InputSubmit(name string) *dom.HTMLInputElement
- func InputText(id, value string) *dom.HTMLInputElement
- func InputTime(id string) *dom.HTMLInputElement
- func InputURL(id, value string) *dom.HTMLInputElement
- func InputUpload(id string) *dom.HTMLInputElement
- func InputWeek(id string) *dom.HTMLInputElement
- func Label(label, forID string) *dom.HTMLLabelElement
- func SelectBox(id string, values ...Option) *dom.HTMLSelectElement
- func TextArea(id string, value string) *dom.HTMLTextAreaElement
- type Option
- type SizeableList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputButton ¶
func InputButton(id, name string) *dom.HTMLInputElement
InputButton creates a button input
func InputCheckbox ¶
func InputCheckbox(id string, value bool) *dom.HTMLInputElement
InputCheckbox creates a checkbox input
func InputColor ¶
func InputColor(id string) *dom.HTMLInputElement
InputColor creates a colour based input box, the workings of which are implementation specific
func InputDate ¶
func InputDate(id string) *dom.HTMLInputElement
InputDate create a date based input, the workings of which are implementation specific
func InputDateTime ¶
func InputDateTime(id string) *dom.HTMLInputElement
InputDateTime create a datetime based input, the workings of which are implementation specific
func InputDateTimeLocal ¶
func InputDateTimeLocal(id string) *dom.HTMLInputElement
InputDateTimeLocal create a local datetime based input, the workings of which are implementation specific
func InputEmail ¶
func InputEmail(id, value string) *dom.HTMLInputElement
InputEmail is a text box that validates as an email address
func InputMonth ¶
func InputMonth(id string) *dom.HTMLInputElement
InputMonth creates a month based input box
func InputNumber ¶
func InputNumber(id string, min, max, value float64) *dom.HTMLInputElement
InputNumber creates a text input that only allows number to be entered
func InputPassword ¶
func InputPassword(id, value string) *dom.HTMLInputElement
InputPassword creates a password input
func InputRadio ¶
func InputRadio(id, name string, value bool) *dom.HTMLInputElement
InputRadio create a radio button input
func InputRange ¶
func InputRange(id string, min, max, step, value float64) *dom.HTMLInputElement
InputRange creates a sliding rule with which a number in the given range can be selected
func InputSizeable ¶
func InputSizeable(id, value string) *dom.HTMLSpanElement
InputSizeable returns a content-editable span that is style to look a text input box
func InputSubmit ¶
func InputSubmit(name string) *dom.HTMLInputElement
InputSubmit creates a submit input
func InputText ¶
func InputText(id, value string) *dom.HTMLInputElement
InputText creates a text input box
func InputTime ¶
func InputTime(id string) *dom.HTMLInputElement
InputTime creates a time based input box
func InputURL ¶
func InputURL(id, value string) *dom.HTMLInputElement
InputURL is a text box that validates as a URL
func InputUpload ¶
func InputUpload(id string) *dom.HTMLInputElement
InputUpload creates an upload input field
func InputWeek ¶
func InputWeek(id string) *dom.HTMLInputElement
InputWeek creates a week based input box
Types ¶
type SizeableList ¶
type SizeableList struct { *dom.HTMLDivElement // contains filtered or unexported fields }
SizeableList is a collection of InputSizable elements
func InputSizeableList ¶
func InputSizeableList(values ...string) *SizeableList
InputSizeableList creates a list of InputSizeable elements, wrapped in a div
func (*SizeableList) Values ¶
func (s *SizeableList) Values() []string
Values returns the values of the enclose InputSizeable's