Crubbletea::Bubbles::TextInput::Model
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)
SourceInstance methods
apply_suggestion
Sourceblur
Sourcechar_limit
Sourcecursor
Sourcecursor_end
Sourcecursor_pos
Sourcecursor_start
Sourcedelete_char_backward
Sourcedelete_char_forward
Sourcedelete_word_backward
Sourcedelete_word_forward
Sourceecho_mode
Sourceerr
Sourceerror_view
Sourcefocus
Sourcefocused?
Sourceid
Sourcematched_suggestions
Sourcemove_left
Sourcemove_right
Sourcemove_to_end
Sourcemove_to_start
Sourcenext_suggestion
Sourceplaceholder
Sourceplaceholder_style
Sourceprev_suggestion
Sourceprompt
Sourceprompt_style
Sourceshow_suggestions
Sourcestyle
Sourcesuggestions
Sourcesuggestions_view
Sourcevalue
Sourceview
Sourcevisible_cursor_pos
Sourcewidth
Sourceword_left
Sourceword_right
Source