From e11dcad5185a1fb35a62076d4357c697da108ad7 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Tue, 17 Jan 2023 13:00:16 +0100 Subject: Add ColSpan and RowSpan attributes (#125) --- html/attributes.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'html/attributes.go') 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) } -- cgit 1.4.1