all repos — gomponents @ 900ef87aac4f4c6c0be49faeb1fc7c190c17a482

HTML components in pure Go

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>

Ken Powers
commit

900ef87aac4f4c6c0be49faeb1fc7c190c17a482

parent

2e44d495769421423921bfcb06ebfc53f8370dd3

1 file changed, 12 insertions(+), 0 deletions(-)

changed files
M html/attributes.gohtml/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) }