Documentation
¶
Index ¶
- type ChatListFilteredMsg
- type ChatSelectedMsg
- type Model
- func (m *Model) ActiveChatId() int64
- func (m *Model) ClickAt(localY int) (chatID int64, ok bool)
- func (m Model) Init() tea.Cmd
- func (m *Model) ScrollBy(n int)
- func (m *Model) SetFocused(focused bool)
- func (m *Model) SetSize(width, height int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatListFilteredMsg ¶
type ChatListFilteredMsg struct {
Query string
}
ChatListFilteredMsg is emitted when the chat list filter changes.
type ChatSelectedMsg ¶
type ChatSelectedMsg struct {
ChatId int64
}
ChatSelectedMsg is emitted when the user selects a chat.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the chat list component.
func (*Model) ActiveChatId ¶
ActiveChatId returns the currently selected chat ID.
func (*Model) ClickAt ¶
ClickAt selects the chat shown at the given local row (inside the panel border) and returns its ID. ok is false when the row has no chat.
Click to show internal directories.
Click to hide internal directories.