button hidden before load
This commit is contained in:
parent
1ca93d6b5a
commit
e7814ef14f
@ -4,7 +4,6 @@ import (
|
|||||||
g "github.com/maragudk/gomponents"
|
g "github.com/maragudk/gomponents"
|
||||||
hx "github.com/maragudk/gomponents-htmx"
|
hx "github.com/maragudk/gomponents-htmx"
|
||||||
. "github.com/maragudk/gomponents/html"
|
. "github.com/maragudk/gomponents/html"
|
||||||
b "github.com/willoma/bulma-gomponents"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Edit() g.Node {
|
func Edit() g.Node {
|
||||||
@ -14,7 +13,7 @@ func Edit() g.Node {
|
|||||||
hx.Swap("outerHTML"),
|
hx.Swap("outerHTML"),
|
||||||
hx.SelectOOB("true"),
|
hx.SelectOOB("true"),
|
||||||
hx.Target("#main"),
|
hx.Target("#main"),
|
||||||
b.Button(
|
Div(
|
||||||
hx.Trigger("load"),
|
hx.Trigger("load"),
|
||||||
hx.Get(BaseUrl+"/htmx/canEdit"),
|
hx.Get(BaseUrl+"/htmx/canEdit"),
|
||||||
hx.Target("this"),
|
hx.Target("this"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user