You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
402 B
Go

package main
import (
"log"
"git.d3nexus.de/Dadido3/D3vugu-components/components/navigation"
"github.com/vugu/vugu"
)
type PageLayout struct {
Page int `vugu:"data"`
Pages int `vugu:"data"`
}
func (c *PageLayout) Init(ctx vugu.InitCtx) {
c.Pages = 10
}
func (c *PageLayout) handlePagination(event navigation.PaginationEvent) {
log.Printf("Some page %v", event.Page)
c.Page = event.Page
}