Input¶
A single-line text input widget.
- Focusable
- Container
Examples¶
A Simple Example¶
The example below shows how you might create a simple form using two Input widgets.
Input
value
placeholder
highlighter
password
restrict
type
max_length
suggester
validators
validate_on
valid_empty
select_on_focus
name
id
classes
disabled
tooltip
compact
BINDINGS
COMPONENT_CLASSES
compact
content_width
cursor_at_end
cursor_at_start
cursor_position
cursor_screen_offset
is_valid
max_length
restrict
selected_text
selection
suggester
type
valid_empty
validate_on
Blurred
Changed
Submitted
action_copy
action_cursor_left
action_cursor_left_word
action_cursor_right
action_cursor_right_word
action_cut
action_delete_left
action_delete_left_all
action_delete_left_word
action_delete_right
action_delete_right_all
action_delete_right_word
action_end
action_home
action_paste
action_select_all
action_submit
check_consume_key
clear
delete
delete_selection
insert
insert_text_at_cursor
replace
restricted
select_all
validate