diff options
author | Guy-Laurent Subri | 2024-10-10 13:31:17 +0200 |
---|---|---|
committer | GitHub | 2024-10-10 13:31:17 +0200 |
commit | 05d56605492cb89bebd80421a6d2afaa947344f0 (patch) | |
tree | 53abbe9bbe0a8fc21c77053dc4448c9853af38a6 /html/attributes.go | |
parent | 73373c8a290e8f16e0ac59b5aa082ca9a21cec98 (diff) | |
download | gomponents-05d56605492cb89bebd80421a6d2afaa947344f0.tar.lz gomponents-05d56605492cb89bebd80421a6d2afaa947344f0.tar.zst gomponents-05d56605492cb89bebd80421a6d2afaa947344f0.zip |
Add missing 'hidden' attribute (#224)
Diffstat (limited to 'html/attributes.go')
-rw-r--r-- | html/attributes.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go index 7748e0e..2e9a05a 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -145,6 +145,10 @@ func Height(v string) g.Node { return g.Attr("height", v) } +func Hidden(v string) g.Node { + return g.Attr("hidden", v) +} + func Href(v string) g.Node { return g.Attr("href", v) } |