diff options
author | Ken Powers | 2024-10-30 10:06:20 -0400 |
---|---|---|
committer | GitHub | 2024-10-30 15:06:20 +0100 |
commit | 900ef87aac4f4c6c0be49faeb1fc7c190c17a482 (patch) | |
tree | 62b8c2c71512362e8a0edbe09a9159e3a119e20f /html/attributes.go | |
parent | 2e44d495769421423921bfcb06ebfc53f8370dd3 (diff) | |
download | gomponents-900ef87aac4f4c6c0be49faeb1fc7c190c17a482.tar.lz gomponents-900ef87aac4f4c6c0be49faeb1fc7c190c17a482.tar.zst gomponents-900ef87aac4f4c6c0be49faeb1fc7c190c17a482.zip |
Add popover attributes (#236)
This PR adds popover attributes as detailed here: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API/Using --------- Co-authored-by: Markus Wüstenberg <markus@maragu.dk>
Diffstat (limited to 'html/attributes.go')
-rw-r--r-- | html/attributes.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go index be8393e..e4cd796 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -213,6 +213,18 @@ func Placeholder(v string) g.Node { return g.Attr("placeholder", v) } +func Popover(value ...string) g.Node { + return g.Attr("popover", value...) +} + +func PopoverTarget(v string) g.Node { + return g.Attr("popovertarget", v) +} + +func PopoverTargetAction(v string) g.Node { + return g.Attr("popovertargetaction", v) +} + func Poster(v string) g.Node { return g.Attr("poster", v) } |