all repos — gomponents @ 47c4228ce91ed598481e0996df87ce2193748aa1

HTML components in pure Go

add helper for closedby attribute (on dialog tag)

Alin
commit

47c4228ce91ed598481e0996df87ce2193748aa1

parent

86940851969d4003dab94059cd55fc4e2d825011

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

changed files
M html/attributes.gohtml/attributes.go
@@ -20,6 +20,10 @@ func Checked() g.Node {
return g.Attr("checked") } +func ClosedBy(v string) g.Node { + return g.Attr("closedby", v) +} + func Controls() g.Node { return g.Attr("controls") }
M html/attributes_test.gohtml/attributes_test.go
@@ -53,6 +53,7 @@ {Name: "autocomplete", Func: AutoComplete},
{Name: "charset", Func: Charset}, {Name: "cite", Func: CiteAttr}, {Name: "class", Func: Class}, + {Name: "closedby", Func: ClosedBy}, {Name: "cols", Func: Cols}, {Name: "colspan", Func: ColSpan}, {Name: "content", Func: Content},