paging

package
v0.0.0-...-f5b748a Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination struct {
	// contains filtered or unexported fields
}

func New

func New(totalAmount, perPage, currentPage int, baseUrl string) *Pagination

func (*Pagination) FirstPart

func (p *Pagination) FirstPart() []string

func (*Pagination) GetActivePageWrapper

func (p *Pagination) GetActivePageWrapper(text string) string

func (*Pagination) GetAvailablePageWrapper

func (p *Pagination) GetAvailablePageWrapper(href, page string) string

func (*Pagination) GetDisabledPageWrapper

func (p *Pagination) GetDisabledPageWrapper(text string) string

func (*Pagination) GetDots

func (p *Pagination) GetDots() string

func (*Pagination) GetNextButton

func (p *Pagination) GetNextButton(text string) string

func (*Pagination) GetPreviousButton

func (p *Pagination) GetPreviousButton(text string) string

func (*Pagination) HasPages

func (p *Pagination) HasPages() bool

func (*Pagination) LastPart

func (p *Pagination) LastPart() []string

func (*Pagination) MiddlePart

func (p *Pagination) MiddlePart() []string

func (*Pagination) Render

func (p *Pagination) Render() template.HTML

func (*Pagination) TotalPages

func (p *Pagination) TotalPages() int

Jump to

Keyboard shortcuts

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