Add ColSpan and RowSpan attributes (#125)
This commit is contained in:
parent
866b767b08
commit
e11dcad518
@ -93,6 +93,10 @@ func Cols(v string) g.Node {
|
|||||||
return g.Attr("cols", v)
|
return g.Attr("cols", v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ColSpan(v string) g.Node {
|
||||||
|
return g.Attr("colspan", v)
|
||||||
|
}
|
||||||
|
|
||||||
func Content(v string) g.Node {
|
func Content(v string) g.Node {
|
||||||
return g.Attr("content", v)
|
return g.Attr("content", v)
|
||||||
}
|
}
|
||||||
@ -182,6 +186,10 @@ func Rows(v string) g.Node {
|
|||||||
return g.Attr("rows", v)
|
return g.Attr("rows", v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func RowSpan(v string) g.Node {
|
||||||
|
return g.Attr("rowspan", v)
|
||||||
|
}
|
||||||
|
|
||||||
func Src(v string) g.Node {
|
func Src(v string) g.Node {
|
||||||
return g.Attr("src", v)
|
return g.Attr("src", v)
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ func TestSimpleAttributes(t *testing.T) {
|
|||||||
"charset": Charset,
|
"charset": Charset,
|
||||||
"class": Class,
|
"class": Class,
|
||||||
"cols": Cols,
|
"cols": Cols,
|
||||||
|
"colspan": ColSpan,
|
||||||
"content": Content,
|
"content": Content,
|
||||||
"enctype": EncType,
|
"enctype": EncType,
|
||||||
"for": For,
|
"for": For,
|
||||||
@ -66,6 +67,7 @@ func TestSimpleAttributes(t *testing.T) {
|
|||||||
"rel": Rel,
|
"rel": Rel,
|
||||||
"role": Role,
|
"role": Role,
|
||||||
"rows": Rows,
|
"rows": Rows,
|
||||||
|
"rowspan": RowSpan,
|
||||||
"src": Src,
|
"src": Src,
|
||||||
"srcset": SrcSet,
|
"srcset": SrcSet,
|
||||||
"style": StyleAttr,
|
"style": StyleAttr,
|
||||||
|
Loading…
Reference in New Issue
Block a user