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(showAttrib bool) hatmill.Attrib
- func Autocapitalize(value string) hatmill.Attrib
- func Autocomplete(value string) hatmill.Attrib
- func Autofocus(showAttrib bool) hatmill.Attrib
- func Autoplay(showAttrib bool) hatmill.Attrib
- func Charset(value string) hatmill.Attrib
- func Checked(showAttrib bool) 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(showAttrib bool) hatmill.Attrib
- func Coords(values ...float32) 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(showAttrib bool) hatmill.Attrib
- func Defer(showAttrib bool) hatmill.Attrib
- func Dir(value string) hatmill.Attrib
- func Dirname(value string) hatmill.Attrib
- func Disabled(showAttrib bool) 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 Formmethod(value string) hatmill.Attrib
- func Headers(value ...string) hatmill.Attrib
- func Height(value int) hatmill.Attrib
- func Hidden(showAttrib bool) 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(showAttrib bool) 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(showAttrib bool) 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(showAttrib bool) hatmill.Attrib
- func Muted(showAttrib bool) hatmill.Attrib
- func Name(value string) hatmill.Attrib
- func Novalidate(showAttrib bool) hatmill.Attrib
- func Open(showAttrib bool) 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(showAttrib bool) hatmill.Attrib
- func Referrerpolicy(value string) hatmill.Attrib
- func Rel(value ...string) hatmill.Attrib
- func Required(showAttrib bool) hatmill.Attrib
- func Reversed(showAttrib bool) 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(showAttrib bool) 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 AccessKeyCode
- type Bool
- type CommaList
- type CoordsList
- type Float
- type Int
- type SpaceList
- type StepValue
- type String
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 Formmethod ¶
Formmethod creates a "formmethod" attribute
func Novalidate ¶
Novalidate creates a "novalidate" 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 ( "os" "git.codemonkeysoftware.net/b/hatmill/attribute" "git.codemonkeysoftware.net/b/hatmill/element" ) 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 ¶
type AccessKeyCode ¶
type AccessKeyCode rune
func (AccessKeyCode) String ¶
func (c AccessKeyCode) String() string
type CoordsList ¶
type CoordsList []float32
func (CoordsList) String ¶
func (l CoordsList) String() string