From b2475a7680d50740eca93447eb6f8d2454c05656 Mon Sep 17 00:00:00 2001 From: Leonardo Silveira Date: Mon, 8 Jul 2024 14:52:42 -0300 Subject: Add draggable attribute (#185) --- html/attributes.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'html/attributes.go') diff --git a/html/attributes.go b/html/attributes.go index 8a1d11e..edaf85e 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -40,6 +40,10 @@ func Disabled() g.Node { return g.Attr("disabled") } +func Draggable(v string) g.Node { + return g.Attr("draggable", v) +} + func Loop() g.Node { return g.Attr("loop") } -- cgit 1.4.1