Documentation ¶
Index ¶
- func Accept(value string) hatmill.Attrib
- func AcceptCharset(value string) hatmill.Attrib
- func Accesskey(value rune) hatmill.Attrib
- func Action(value string) hatmill.Attrib
- func Alt(value string) hatmill.Attrib
- func Async() hatmill.Attrib
- func Autocapitalize(value string) hatmill.Attrib
- func Autocomplete(value string) hatmill.Attrib
- func Autofocus() hatmill.Attrib
- func Autoplay() hatmill.Attrib
- func Charset(value string) hatmill.Attrib
- func Checked() hatmill.Attrib
- func Cite(value string) hatmill.Attrib
- func Class(value string) hatmill.Attrib
- func Cols(value int) hatmill.Attrib
- func Colspan(value int) hatmill.Attrib
- func Content(value string) hatmill.Attrib
- func Contenteditable(value bool) hatmill.Attrib
- func Contextmenu(value string) hatmill.Attrib
- func Controls() hatmill.Attrib
- func Coords(value string) hatmill.Attrib
- func Crossorigin(value string) hatmill.Attrib
- func CustomData(suffix, value string) hatmill.Attrib
- func Datetime(value string) hatmill.Attrib
- func Decoding(value string) hatmill.Attrib
- func Default() hatmill.Attrib
- func Defer() hatmill.Attrib
- func Dir(value string) hatmill.Attrib
- func Dirname(value string) hatmill.Attrib
- func Disabled() hatmill.Attrib
- func Download(value string) hatmill.Attrib
- func Draggable(value bool) hatmill.Attrib
- func Enctype(value string) hatmill.Attrib
- func For(value string) hatmill.Attrib
- func Form(value string) hatmill.Attrib
- func Formaction(value string) hatmill.Attrib
- func Headers(value string) hatmill.Attrib
- func Height(value int) hatmill.Attrib
- func Hidden() hatmill.Attrib
- func High(value float32) hatmill.Attrib
- func Href(value string) hatmill.Attrib
- func Hreflang(value string) hatmill.Attrib
- func HttpEquiv(value string) hatmill.Attrib
- func Id(value string) hatmill.Attrib
- func Ismap() hatmill.Attrib
- func Itemprop(value string) hatmill.Attrib
- func Kind(value string) hatmill.Attrib
- func Label(value string) hatmill.Attrib
- func Lang(value string) hatmill.Attrib
- func List(value string) hatmill.Attrib
- func Loop() hatmill.Attrib
- func Low(value float32) hatmill.Attrib
- func Max(value float32) hatmill.Attrib
- func Maxlength(value int) hatmill.Attrib
- func Media(value string) hatmill.Attrib
- func Method(value string) hatmill.Attrib
- func Min(value float32) hatmill.Attrib
- func Minlength(value int) hatmill.Attrib
- func Multiple() hatmill.Attrib
- func Muted() hatmill.Attrib
- func Name(value string) hatmill.Attrib
- func Novalidate() hatmill.Attrib
- func Open() hatmill.Attrib
- func Optimum(value float32) hatmill.Attrib
- func Pattern(value string) hatmill.Attrib
- func Ping(value string) hatmill.Attrib
- func Placeholder(value string) hatmill.Attrib
- func Poster(value string) hatmill.Attrib
- func Preload(value string) hatmill.Attrib
- func Readonly() hatmill.Attrib
- func Referrerpolicy(value string) hatmill.Attrib
- func Rel(value string) hatmill.Attrib
- func Required() hatmill.Attrib
- func Reversed() hatmill.Attrib
- func Rows(value int) hatmill.Attrib
- func Rowspan(value int) hatmill.Attrib
- func Sandbox(value string) hatmill.Attrib
- func Scope(value string) hatmill.Attrib
- func Selected() hatmill.Attrib
- func Shape(value string) hatmill.Attrib
- func Size(value int) hatmill.Attrib
- func Sizes(value string) hatmill.Attrib
- func Span(value int) hatmill.Attrib
- func Spellcheck(value bool) hatmill.Attrib
- func Src(value string) hatmill.Attrib
- func Srcdoc(value string) hatmill.Attrib
- func Srclang(value string) hatmill.Attrib
- func Srcset(value string) hatmill.Attrib
- func Start(value string) hatmill.Attrib
- func Step(value StepValue) hatmill.Attrib
- func Style(value string) hatmill.Attrib
- func Tabindex(value int) hatmill.Attrib
- func Target(value string) hatmill.Attrib
- func Title(value string) hatmill.Attrib
- func Type(value string) hatmill.Attrib
- func Usemap(value string) hatmill.Attrib
- func Value(value string) hatmill.Attrib
- func Width(value int) hatmill.Attrib
- func Wrap(value string) hatmill.Attrib
- type StepValue
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptCharset ¶
AcceptCharset creates a "accept-charset" attribute
func Autocapitalize ¶
Autocapitalize creates a "autocapitalize" attribute
func Autocomplete ¶
Autocomplete creates a "autocomplete" attribute
func Contenteditable ¶
Contenteditable creates a "contenteditable" attribute
func Contextmenu ¶
Contextmenu creates a "contextmenu" attribute
func Crossorigin ¶
Crossorigin creates a "crossorigin" attribute
func CustomData ¶
CustomData creates an attribute of the form data-suffix='value'.
func Formaction ¶
Formaction creates a "formaction" attribute
func Placeholder ¶
Placeholder creates a "placeholder" attribute
func Referrerpolicy ¶
Referrerpolicy creates a "referrerpolicy" attribute
func Spellcheck ¶
Spellcheck creates a "spellcheck" attribute
func Step ¶
Step indicates the minimum allowed change to a number input.
Example ¶
package main import ( "gitlab.codemonkeysoftware.net/b/hatmill/attribute" "gitlab.codemonkeysoftware.net/b/hatmill/element" "os" ) func main() { s1 := attribute.Step(attribute.StepAny()) s2 := attribute.Step(attribute.StepFloat(0.5)) e := element.Div()( element.Input(s1), element.Input(s2), ) e.WriteTo(os.Stdout) }
Output: <div><input step='any'><input step='0.5'></div>
Types ¶
Click to show internal directories.
Click to hide internal directories.