Documentation ¶
Index ¶
- type Model
- func (m *Model) Blur() tea.Cmd
- func (m *Model) EnableSuggestion(value bool)
- func (m *Model) Focus() tea.Cmd
- func (m Model) Focused() bool
- func (m Model) Height() int
- func (m Model) ID() uuid.UUID
- func (m Model) Init() tea.Cmd
- func (m Model) KeyBindings() (bindings []key.Binding)
- func (m *Model) SetSuggestions(suggestions []string)
- func (m *Model) SetValue(str string) bool
- func (m *Model) SetWidth(width int)
- func (m Model) Update(msg tea.Msg) (_ tea.Model, cmd tea.Cmd)
- func (m Model) Value() string
- func (m Model) View() string
- func (m Model) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { BlurPrompt string // BlurPrompt controls the prompt to display in blur mode. FocusPrompt string // FocusPrompt controls the prompt to display in focus mode. Validate func(str string) error // Validate validsts the value to display input with style. TextStyle lipgloss.Style // TextSyle applies in blur mode. ValidStyle lipgloss.Style // ValidStyle applies when the input is valid in focus mode. InvalidStyle lipgloss.Style //InvalidStyle applies when the input in invalid in focus mode. // contains filtered or unexported fields }
Model displays the content with terminal style.
func (*Model) EnableSuggestion ¶ added in v0.0.3
func (Model) KeyBindings ¶ added in v0.0.3
func (*Model) SetSuggestions ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.