widgets

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Breadcrumbs []breadcrumb
func (b *Breadcrumbs) Add(name, url string, sortOrder int)
func (b *Breadcrumbs) Sort()

type Pagination added in v0.0.2

type Pagination struct {
	Ctx echo.Context

	Total       int64
	Limit, View int
	Page, Pages int
	NumLinks    int

	URLTemplate string
	PageParam   string

	Previous, Next PaginationItem
	First, Last    PaginationItem
}

func (*Pagination) Exists added in v0.0.2

func (p *Pagination) Exists() bool

func (*Pagination) Items added in v0.0.2

func (p *Pagination) Items() []PaginationItem

func (*Pagination) ParsePage added in v0.0.2

func (p *Pagination) ParsePage()

type PaginationItem added in v0.0.2

type PaginationItem struct {
	PageNum int
	URL     string
	Current bool
}

func (PaginationItem) Enable added in v0.0.2

func (item PaginationItem) Enable() bool

Jump to

Keyboard shortcuts

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