widgets

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MIT Imports: 4 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)

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