Documentation ¶
Index ¶
- type Model
- func (m *Model) Blur()
- func (m *Model) Focus()
- func (m Model) Init() tea.Cmd
- func (m Model) IsActive() bool
- func (m Model) OnAvailWidthChange(width int) layout.LayoutModel
- func (m Model) SetActive() layout.LayoutModel
- func (m *Model) SetPlaceholder(text string)
- func (m *Model) SetValue(text string)
- func (m Model) UnsetActive() layout.LayoutModel
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Model) Value() string
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Textarea model
func InitialModel ¶
func InitialModel(ctx *context.ProgramContext, placeholder string) Model
Get new textarea
func (Model) OnAvailWidthChange ¶
func (m Model) OnAvailWidthChange(width int) layout.LayoutModel
func (Model) SetActive ¶
func (m Model) SetActive() layout.LayoutModel
func (*Model) SetPlaceholder ¶
func (Model) UnsetActive ¶
func (m Model) UnsetActive() layout.LayoutModel
Click to show internal directories.
Click to hide internal directories.