paginator

package
v0.0.0-...-ba7cdbd Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2014 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Fmt is an alias for gnd.la/html/paginator/Fmt, so
	// users don't have to import it just to use this function.
	Fmt = paginator.Fmt
)

Functions

This section is empty.

Types

type Pager

type Pager struct {
	*paginator.SimplePager
	Size      bootstrap.Size
	Alignment bootstrap.Alignment
}

Pager implements the Pager interface and is used by the Paginator to render itself.

func (*Pager) Node

func (p *Pager) Node(n *html.Node, page int, flags int) *html.Node

func (*Pager) Root

func (p *Pager) Root() *html.Node

type Paginator

type Paginator struct {
	*paginator.Paginator
	// contains filtered or unexported fields
}

Paginator represents a paginator which is rendered using Bootstrap's markup.

func New

func New(base string, current, count int, next, prev, sep string, f paginator.Func) *Paginator

func (*Paginator) Alignment

func (p *Paginator) Alignment() bootstrap.Alignment

Alignment returns the paginator alignment.

func (*Paginator) Pager

func (p *Paginator) Pager() *Pager

Pager returns the pager used by this paginator.

func (*Paginator) SetAlignment

func (p *Paginator) SetAlignment(a bootstrap.Alignment)

SetAlignment sets the paginator alignment.

func (*Paginator) SetSize

func (p *Paginator) SetSize(s bootstrap.Size)

SetSize changes the paginator size.

func (*Paginator) Size

func (p *Paginator) Size() bootstrap.Size

Size returns the paginator size.

Jump to

Keyboard shortcuts

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