class Term::Prompt::BlockPaginator

Defined in:

prompt/block_paginator.cr

Instance Method Summary

Instance methods inherited from class Term::Prompt::Paginator

check_page_size! check_page_size!, current_index : Int32 current_index, end_index : Int32 | Nil end_index, last_index : Int32 last_index, paginate(list, active, page_size = nil, &block : Choice, Int32 -> )
paginate(list, active, page_size = nil)
paginate
, reset! reset!, start_index : Int32 | Nil start_index, start_index=(start_index : Int32 | Nil) start_index=

Constructor methods inherited from class Term::Prompt::Paginator

new(**options) new

Instance Method Detail

def paginate(list, active, page_size = nil, &block : Choice, Int32 -> ) #

Paginate list of choices based on current active choice. Move entire pages.


[View source]