about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2021-06-18 09:39:47 +0200
committerGitHub2021-06-18 09:39:47 +0200
commitec86ca5c71fecf21590b872737fbadd9aa3e158b (patch)
treeb6de2ad1bd978d0c7f8d25ee089b2f190f2fd1e1 /html/attributes.go
parent0efc71d6f326efc88d25688f50f83b948b40fc38 (diff)
downloadgomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.tar.lz
gomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.tar.zst
gomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.zip
Add video element and related attributes (#84)
Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go24
1 files changed, 20 insertions, 4 deletions
diff --git a/html/attributes.go b/html/attributes.go
index ab575d8..b670b05 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -28,10 +28,22 @@ func Disabled() g.Node {
 	return g.Attr("disabled")
 }
 
+func Loop() g.Node {
+	return g.Attr("loop")
+}
+
 func Multiple() g.Node {
 	return g.Attr("multiple")
 }
 
+func Muted() g.Node {
+	return g.Attr("muted")
+}
+
+func PlaysInline() g.Node {
+	return g.Attr("playsinline")
+}
+
 func ReadOnly() g.Node {
 	return g.Attr("readonly")
 }
@@ -142,14 +154,18 @@ func Pattern(v string) g.Node {
 	return g.Attr("pattern", v)
 }
 
-func Preload(v string) g.Node {
-	return g.Attr("preload", v)
-}
-
 func Placeholder(v string) g.Node {
 	return g.Attr("placeholder", v)
 }
 
+func Poster(v string) g.Node {
+	return g.Attr("poster", v)
+}
+
+func Preload(v string) g.Node {
+	return g.Attr("preload", v)
+}
+
 func Rel(v string) g.Node {
 	return g.Attr("rel", v)
 }