diff options
author | Leonardo Silveira | 2024-07-08 14:52:42 -0300 |
---|---|---|
committer | GitHub | 2024-07-08 19:52:42 +0200 |
commit | b2475a7680d50740eca93447eb6f8d2454c05656 (patch) | |
tree | 75351c8bc8f01e119f0d2749727d1d2cceeac77e /html/attributes.go | |
parent | 8b43a908820fb8c6b8a0f6d68d11bb2596a9e033 (diff) | |
download | gomponents-b2475a7680d50740eca93447eb6f8d2454c05656.tar.lz gomponents-b2475a7680d50740eca93447eb6f8d2454c05656.tar.zst gomponents-b2475a7680d50740eca93447eb6f8d2454c05656.zip |
Add draggable attribute (#185)
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 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") } |