all repos — gomponents @ 8e4b1319d12e11fe62725fc30ea01b1f274f8c50

HTML components in pure Go

Add Step attribute (#126) See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step Fixes #120.

Markus Wüstenberg
commit

8e4b1319d12e11fe62725fc30ea01b1f274f8c50

parent

e11dcad5185a1fb35a62076d4357c697da108ad7

2 files changed, 5 insertions(+), 0 deletions(-)

changed files
M html/attributes.gohtml/attributes.go
@@ -198,6 +198,10 @@ func SrcSet(v string) g.Node {
return g.Attr("srcset", v) } +func Step(v string) g.Node { + return g.Attr("step", v) +} + func StyleAttr(v string) g.Node { return g.Attr("style", v) }
M html/attributes_test.gohtml/attributes_test.go
@@ -70,6 +70,7 @@ "rows": Rows,
"rowspan": RowSpan, "src": Src, "srcset": SrcSet, + "step": Step, "style": StyleAttr, "tabindex": TabIndex, "target": Target,