OptionList¶
Added in version 0.17.0
A widget for showing a vertical list of Rich renderable options.
- Focusable
- Container
Examples¶
Options as simple strings¶
An OptionList can be constructed with a simple collection of string
options:
OptionList
*content
name
id
classes
disabled
markup
compact
BINDINGS
COMPONENT_CLASSES
compact
highlighted
highlighted_option
option_count
options
OptionHighlighted
OptionMessage
OptionSelected
action_cursor_down
action_cursor_up
action_first
action_last
action_page_down
action_page_up
action_select
add_option
add_options
clear_options
disable_option
disable_option_at_index
enable_option
enable_option_at_index
get_option
get_option_at_index
get_option_index
remove_option
remove_option_at_index
replace_option_prompt
replace_option_prompt_at_index
scroll_to_highlight
set_options
validate_highlighted
watch_highlighted
option_list
DuplicateID
Option
OptionDoesNotExist