struct

Crubbletea::Bubbles::Paginator::Model

Inherits Struct < Value < Object

Constructors

new(type : Type = Type::Arabic, page : Int32 = 0, per_page : Int32 = 1, total_pages : Int32 = 1, active_dot : String = "•", inactive_dot : String = "○", arabic_format : String = "%d/%d")
Source

Instance methods

active_dot
Source
arabic_format
Source
inactive_dot
Source
items_on_page(total_items : Int32) : Int32
Source
next_page
Source
on_first_page?
Source
on_last_page?
Source
page
Source
per_page
Source
prev_page
Source
set_total_pages(items : Int32) : Int32
Source
slice_bounds(length : Int32) : Tuple(Int32, Int32)
Source
total_pages
Source
type
Source
view
Source

Nested types