Documentation
¶
Overview ¶
Package el provides shortcuts and helpers to common HTML elements. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for a list of elements.
Index ¶
- func A(href string, children ...g.Node) g.NodeFunc
- func B(text string, children ...g.Node) g.NodeFunc
- func Base(children ...g.Node) g.NodeFunc
- func Body(children ...g.Node) g.NodeFunc
- func Button(children ...g.Node) g.NodeFunc
- func Div(children ...g.Node) g.NodeFunc
- func Document(children ...g.Node) g.NodeFunc
- func Em(text string, children ...g.Node) g.NodeFunc
- func Form(action, method string, children ...g.Node) g.NodeFunc
- func H1(text string, children ...g.Node) g.NodeFunc
- func H2(text string, children ...g.Node) g.NodeFunc
- func H3(text string, children ...g.Node) g.NodeFunc
- func H4(text string, children ...g.Node) g.NodeFunc
- func H5(text string, children ...g.Node) g.NodeFunc
- func H6(text string, children ...g.Node) g.NodeFunc
- func HTML(children ...g.Node) g.NodeFunc
- func Head(children ...g.Node) g.NodeFunc
- func I(text string, children ...g.Node) g.NodeFunc
- func Img(src, alt string, children ...g.Node) g.NodeFunc
- func Input(typ, name string, children ...g.Node) g.NodeFunc
- func Label(forr string, children ...g.Node) g.NodeFunc
- func Li(children ...g.Node) g.NodeFunc
- func Link(children ...g.Node) g.NodeFunc
- func Meta(children ...g.Node) g.NodeFunc
- func Ol(children ...g.Node) g.NodeFunc
- func Option(text, value string, children ...g.Node) g.NodeFunc
- func P(children ...g.Node) g.NodeFunc
- func Progress(value, max float64, children ...g.Node) g.NodeFunc
- func Select(name string, children ...g.Node) g.NodeFunc
- func Span(children ...g.Node) g.NodeFunc
- func Strong(text string, children ...g.Node) g.NodeFunc
- func Style(children ...g.Node) g.NodeFunc
- func Textarea(name string, children ...g.Node) g.NodeFunc
- func Title(title string) g.NodeFunc
- func Ul(children ...g.Node) g.NodeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Document ¶
Document returns an special kind of Node that prefixes its children with the string "<!doctype html>".
func Form ¶ added in v0.5.0
Form returns an element with name "form", the given action and method attributes, and the given children.
func Input ¶ added in v0.5.0
Input returns an element with name "input", the given type and name attributes, and the given children. Note that "type" is a keyword in Go, so the parameter is called typ.
func Label ¶ added in v0.5.0
Label returns an element with name "label", the given for attribute, and the given children. Note that "for" is a keyword in Go, so the parameter is called forr.
func Option ¶ added in v0.5.0
Option returns an element with name "option", the given text content and value attribute, and the given children.
func Progress ¶ added in v0.5.0
Progress returns an element with name "progress", the given value and max attributes, and the given children.
func Select ¶ added in v0.5.0
Select returns an element with name "select", the given name attribute, and the given children.
func Textarea ¶ added in v0.5.0
Textarea returns an element with name "textarea", the given name attribute, and the given children.
Types ¶
This section is empty.