class Term::Prompt::Slider
- Term::Prompt::Slider
- Reference
- Object
Overview
A class responsible for gathering numeric input from range
Defined in:
prompt/slider.crConstant Summary
-
FORMAT =
":slider %d"
-
HELP =
"(Use arrow keys, press Enter to select)"
Constructors
-
.new(prompt : Term::Prompt, **options)
Initialize a Slider
Instance Method Summary
-
#call(question : Nil | String, &block)
Call the slider by passing question
-
#call(question : Nil | String)
ditto
- #default(value : Int32 | Nil)
- #format(value : String)
-
#initial
Setup initial active position
- #keydown
- #keyenter
- #keyleft
- #keyreturn
- #keyright
- #keyup
- #max(value : Int32)
- #min(value : Int32)
-
#range
Range of numbers to render
- #step(value : Int32)
- #symbols : Hash(Symbol, String)
-
#symbols=(new_symbols)
Change symbols used by this prompt