Term2::Components::Paginator
Inherits Term2::Model < Reference < Object
Constructors
Instance methods
Calculate the slice bounds for the current page Returns {start, end} indices for slicing an array
inactive_dot
Sourceinit
Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.
next_page
Sourceon_first_page?
Sourceon_last_page?
Sourcepage
Sourceper_page
Sourceprev_page
Sourcetotal_pages
Sourcetype
Sourcetype=(type : Type)
SourceUpdate is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.
view
View renders the program's UI, which is just a string. The view is rendered after every Update.