From 900ef87aac4f4c6c0be49faeb1fc7c190c17a482 Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Wed, 30 Oct 2024 10:06:20 -0400 Subject: 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 --- html/attributes.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'html/attributes.go') 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) } -- cgit 1.4.1