Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
angelofallars committed Nov 25, 2023
1 parent 6bc250a commit ae2bed4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ package main
import (
"fmt"
"net/http"
"time"

"github.com/angelofallars/htmx-go"
)

func main() {
fmt.Println(htmx.SwapBeforeEnd.
Scroll(htmx.Bottom).
SettleAfter(time.Millisecond * 500),
)
r := htmx.NewResponse().
Reswap(htmx.SwapAfterBegin.Scroll(htmx.Top)).
AddTrigger(
htmx.TriggerObject("hello", "world"),
htmx.TriggerObject("myEvent", map[string]string{
Expand Down

0 comments on commit ae2bed4

Please sign in to comment.