diff options
author | Markus Wüstenberg | 2020-11-16 13:03:54 +0100 |
---|---|---|
committer | GitHub | 2020-11-16 13:03:54 +0100 |
commit | 633b000d9115dbf7d4cc072cb1349268a09c3375 (patch) | |
tree | 670295c5e4dfda7a4655a2a2ec1ecc43d7f6aa51 /el | |
parent | 108f8d9ba564aef06155f6fdc83e140bb5953b3d (diff) | |
download | gomponents-633b000d9115dbf7d4cc072cb1349268a09c3375.tar.lz gomponents-633b000d9115dbf7d4cc072cb1349268a09c3375.tar.zst gomponents-633b000d9115dbf7d4cc072cb1349268a09c3375.zip |
Add svg element (#46)
Also add `cols` and `rows` attributes. Fixes #43.
Diffstat (limited to 'el')
-rw-r--r-- | el/simple.go | 4 | ||||
-rw-r--r-- | el/simple_test.go | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/el/simple.go b/el/simple.go index 2fb4c3e..1ebf33f 100644 --- a/el/simple.go +++ b/el/simple.go @@ -216,6 +216,10 @@ func Summary(children ...g.Node) g.NodeFunc { return g.El("summary", children...) } +func SVG(children ...g.Node) g.NodeFunc { + return g.El("svg", children...) +} + func Table(children ...g.Node) g.NodeFunc { return g.El("table", children...) } diff --git a/el/simple_test.go b/el/simple_test.go index f01ba51..2621982 100644 --- a/el/simple_test.go +++ b/el/simple_test.go @@ -54,6 +54,7 @@ func TestSimpleElements(t *testing.T) { "span": el.Span, "style": el.Style, "summary": el.Summary, + "svg": el.SVG, "table": el.Table, "tbody": el.TBody, "td": el.Td, |