pagination

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content added in v1.1.0

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

func CreatePagination added in v1.1.0

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 added in v1.1.0

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

func Next added in v1.1.0

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

func Pagination

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

func Previous added in v1.1.0

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

Types

type ContentProps added in v1.1.0

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

type ItemProps added in v1.1.0

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

type LinkProps added in v1.1.0

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

type NextProps added in v1.1.0

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

type PreviousProps added in v1.1.0

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

type Props added in v1.1.0

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