paginations

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLimits = []int{10, 25, 50, 100}

Functions

func Next

func Next(p PaginationProps) htmx.Node

Next ...

func Pagination

func Pagination(p PaginationProps, children ...htmx.Node) htmx.Node

Pagination ...

func Prev

func Prev(p PaginationProps) htmx.Node

Prev ...

func Select

func Select(p SelectProps, children ...htmx.Node) htmx.Node

Select ...

Types

type PaginationProps

type PaginationProps struct {
	ClassNames htmx.ClassNames
	Total      int
	Offset     int
	Limit      int
	URL        string
}

PaginationProps is a struct that contains the properties of a pagination

type SelectProps

type SelectProps struct {
	ClassNames htmx.ClassNames
	Limits     []int
}

SelectProps ...

Jump to

Keyboard shortcuts

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