all repos — gomponents @ e11dcad5185a1fb35a62076d4357c697da108ad7

HTML components in pure Go

Add ColSpan and RowSpan attributes (#125)

Markus Wüstenberg
commit

e11dcad5185a1fb35a62076d4357c697da108ad7

parent

866b767b089fb64494edfa7a33c1e15753b3a848

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

changed files
M html/attributes.gohtml/attributes.go
@@ -93,6 +93,10 @@ func Cols(v string) g.Node {
return g.Attr("cols", v) } +func ColSpan(v string) g.Node { + return g.Attr("colspan", v) +} + func Content(v string) g.Node { return g.Attr("content", v) }
@@ -180,6 +184,10 @@ }
func Rows(v string) g.Node { return g.Attr("rows", v) +} + +func RowSpan(v string) g.Node { + return g.Attr("rowspan", v) } func Src(v string) g.Node {
M html/attributes_test.gohtml/attributes_test.go
@@ -44,6 +44,7 @@ "autocomplete": AutoComplete,
"charset": Charset, "class": Class, "cols": Cols, + "colspan": ColSpan, "content": Content, "enctype": EncType, "for": For,
@@ -66,6 +67,7 @@ "preload": Preload,
"rel": Rel, "role": Role, "rows": Rows, + "rowspan": RowSpan, "src": Src, "srcset": SrcSet, "style": StyleAttr,