class

Term::Prompt::Slider

Inherits Reference / Object

A class responsible for gathering numeric input from range

Constants

FORMAT = ":slider %d"
HELP = "(Use arrow keys, press Enter to select)"

Constructors

new(prompt : Term::Prompt, **options)

Initialize a Slider

Source

Instance methods

call(question : Nil | String, &block)

Call the slider by passing question

Source
call(question : Nil | String)

ditto

Source
default(value : Int32 | Nil)
Source
format(value : String)
Source
initial

Setup initial active position

Source
keydown
Source
keyenter
Source
keyleft
Source
keyreturn
Source
keyright
Source
keyup
Source
max(value : Int32)
Source
min(value : Int32)
Source
range

Range of numbers to render

Source
step(value : Int32)
Source
symbols
Source
symbols=(new_symbols)

Change symbols used by this prompt

Source