class

Crubbletea::Bubbles::TextInput::Model

Inherits Reference < Object

Constructors

new(prompt : String = "> ", placeholder : String = "", width : Int32 = 20, char_limit : Int32 = 0, echo_mode : Symbol = :normal, style : Lipgloss::Style = Lipgloss::Style.new, prompt_style : Lipgloss::Style = Lipgloss::Style.new, placeholder_style : Lipgloss::Style = Lipgloss::Style.new, cursor : Cursor::Model = Cursor::Model.new, suggestions : Array(String) = [] of String, show_suggestions : Bool = false)
Source

Instance methods

apply_suggestion
Source
blur
Source
char_limit
Source
cursor
Source
cursor_end
Source
cursor_pos
Source
cursor_pos=(pos : Int32) : Nil
Source
cursor_start
Source
delete_char_backward
Source
delete_char_forward
Source
delete_word_backward
Source
delete_word_forward
Source
echo_mode
Source
error_view
Source
focus
Source
focused?
Source
insert_char(c : Char) : Nil
Source
matched_suggestions
Source
move_left
Source
move_right
Source
move_to_end
Source
move_to_start
Source
next_suggestion
Source
placeholder
Source
placeholder_style
Source
prev_suggestion
Source
prompt
Source
prompt_style
Source
set_suggestions(suggestions : Array(String)) : Nil
Source
show_suggestions
Source
show_suggestions=(v : Bool) : Nil
Source
style
Source
suggestions
Source
suggestions_view
Source
value
Source
value=(v : String) : Nil
Source
view
Source
visible_cursor_pos
Source
width
Source
width=(w : Int32) : Nil
Source
word_left
Source
word_right
Source