File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,12 @@ func Disable(v string) g.Node {
98
98
return attr ("disable" , v )
99
99
}
100
100
101
+ // Disable element until htmx request completes.
102
+ // See https://htmx.org/attributes/hx-disabled-elt/
103
+ func DisableElt (v string ) g.Node {
104
+ return attr ("disable-elt" , v )
105
+ }
106
+
101
107
// Disinherit controls and disables automatic attribute inheritance for child nodes.
102
108
// See https://htmx.org/attributes/hx-disinherit
103
109
func Disinherit (v string ) g.Node {
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ func TestAttributes(t *testing.T) {
28
28
"confirm" : hx .Confirm ,
29
29
"delete" : hx .Delete ,
30
30
"disable" : hx .Disable ,
31
+ "disable-elt" : hx .DisableElt ,
31
32
"disinherit" : hx .Disinherit ,
32
33
"encoding" : hx .Encoding ,
33
34
"ext" : hx .Ext ,
You can’t perform that action at this time.
0 commit comments