about summary refs log tree commit diff stats
path: root/html/attributes.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2023-05-11 11:22:01 +0200
committerMarkus Wüstenberg2023-05-11 11:22:01 +0200
commit4248e85def552b68672b8f6f4de12f0e2bf50517 (patch)
tree1c8c6d8900db837aa4790841452a78ba6c742b21 /html/attributes.go
parent4f9709afcc83b617f17f8e5757d58a55be7bf2cf (diff)
downloadgomponents-4248e85def552b68672b8f6f4de12f0e2bf50517.tar.lz
gomponents-4248e85def552b68672b8f6f4de12f0e2bf50517.tar.zst
gomponents-4248e85def552b68672b8f6f4de12f0e2bf50517.zip
Add "checked" bool attribute
Fixes #127.
Diffstat (limited to 'html/attributes.go')
-rw-r--r--html/attributes.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go
index 3c69f94..b38dd95 100644
--- a/html/attributes.go
+++ b/html/attributes.go
@@ -16,6 +16,10 @@ func AutoPlay() g.Node {
 	return g.Attr("autoplay")
 }
 
+func Checked() g.Node {
+	return g.Attr("checked")
+}
+
 func Controls() g.Node {
 	return g.Attr("controls")
 }