about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2023-01-17 13:00:16 +0100
committerGitHub2023-01-17 13:00:16 +0100
commite11dcad5185a1fb35a62076d4357c697da108ad7 (patch)
treeff03d97463405ddea7cd7b9dc1cb9d495f2f9f9a /html/attributes.go
parent866b767b089fb64494edfa7a33c1e15753b3a848 (diff)
downloadgomponents-e11dcad5185a1fb35a62076d4357c697da108ad7.tar.lz
gomponents-e11dcad5185a1fb35a62076d4357c697da108ad7.tar.zst
gomponents-e11dcad5185a1fb35a62076d4357c697da108ad7.zip
Add ColSpan and RowSpan attributes (#125)
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index 7733457..5e56683 100644
--- a/html/attributes.go
+++ b/html/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)
 }
@@ -182,6 +186,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 {
 	return g.Attr("src", v)
 }