Documentation
¶
Index ¶
- Constants
- type Component
- func (c *Component) Blur()
- func (c *Component) Focus() tea.Cmd
- func (c *Component) Focusables() map[string]focus.Focusable
- func (c *Component) Init() tea.Cmd
- func (c *Component) Input() *textarea.Model
- func (c *Component) SetPayload(payload string)
- func (c *Component) Update(msg tea.Msg) tea.Cmd
- func (c *Component) View() string
- type Model
- type State
Constants ¶
View Source
const ID = "message"
ID identifies the message input for focus management.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
*State
// contains filtered or unexported fields
}
Component implements the message editor.
func NewComponent ¶
NewComponent creates a message editor component.
func (*Component) Focusables ¶
Focusables exposes focusable elements for the message component.
func (*Component) SetPayload ¶
SetPayload updates the textarea with the provided payload.
Click to show internal directories.
Click to hide internal directories.