Documentation
¶
Index ¶
- type ContactSelectedMsg
- type Model
- func (m *Model) ClickAt(localY int) (userID int64, ok bool)
- func (m Model) IsVisible() bool
- func (m *Model) LoadContacts() tea.Cmd
- func (m *Model) ScrollBy(n int)
- func (m *Model) SetFocused(focused bool)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetVisible(visible bool)
- 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 ContactSelectedMsg ¶
type ContactSelectedMsg struct {
UserId int64
}
ContactSelectedMsg is emitted when a contact is selected.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the contact list component.
func (*Model) ClickAt ¶
ClickAt selects the contact shown at the given local row (inside the panel border) and returns its user ID. ok is false when the row has no contact.
func (*Model) LoadContacts ¶
LoadContacts fetches the contact list.
func (*Model) SetVisible ¶
SetVisible shows or hides the contacts panel.
Click to show internal directories.
Click to hide internal directories.