pagination

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(props ...ContentProps) templ.Component

func CreatePagination

func CreatePagination(currentPage, totalPages, maxVisible int) struct {
	CurrentPage int
	TotalPages  int
	Pages       []int
	HasPrevious bool
	HasNext     bool
}

func Ellipsis

func Ellipsis() templ.Component

func Item

func Item(props ...ItemProps) templ.Component
func Link(props ...LinkProps) templ.Component

func Next

func Next(props ...NextProps) templ.Component

func Pagination

func Pagination(props ...Props) templ.Component

func Previous

func Previous(props ...PreviousProps) templ.Component

Types

type ContentProps

type ContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type ItemProps

type ItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type LinkProps

type LinkProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Href       string
	IsActive   bool
	Disabled   bool
	HxGet      string
	HxTarget   string
	HxSwap     string
}

type NextProps

type NextProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Href       string
	Disabled   bool
	Label      string
	HxGet      string
	HxTarget   string
	HxSwap     string
}

type PreviousProps

type PreviousProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Href       string
	Disabled   bool
	Label      string
	HxGet      string
	HxTarget   string
	HxSwap     string
}

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL