forked from Mirrors/bubbletea
Rename PaginatorType to Type
Type name would be used as paginator.PaginatorType by other packages, and that stutters.
This commit is contained in:
parent
6db7c48ba8
commit
bb19d42cc0
|
@ -10,18 +10,18 @@ import (
|
||||||
"github.com/charmbracelet/boba"
|
"github.com/charmbracelet/boba"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PaginatorType specifies the way we render pagination
|
// Type specifies the way we render pagination
|
||||||
type PaginatorType int
|
type Type int
|
||||||
|
|
||||||
// Pagination rendering options
|
// Pagination rendering options
|
||||||
const (
|
const (
|
||||||
Arabic PaginatorType = iota
|
Arabic Type = iota
|
||||||
Dots
|
Dots
|
||||||
)
|
)
|
||||||
|
|
||||||
// Model is the Boba model for this user interface
|
// Model is the Boba model for this user interface
|
||||||
type Model struct {
|
type Model struct {
|
||||||
Type PaginatorType
|
Type Type
|
||||||
Page int
|
Page int
|
||||||
PerPage int
|
PerPage int
|
||||||
TotalPages int
|
TotalPages int
|
||||||
|
|
Loading…
Reference in New Issue