Documentation ¶
Index ¶
- Variables
- func DownloadEpisodeAction(d DetailList) tea.Cmd
- func MenuSetActiveCmd(index int) tea.Cmd
- func NewAdd() tea.Model
- func NewDetailList(items []list.Item, width int, height int, action DetailListAction, ...) tea.Model
- func NewMenu(items []MenuItem) tea.Model
- type ActionMap
- type Add
- type AddContext
- type DetailList
- func (d DetailList) Init() tea.Cmd
- func (d DetailList) SelectedItem() list.Item
- func (d *DetailList) SetDimensions(msg tea.WindowSizeMsg)
- func (d DetailList) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (d *DetailList) UpdateDetails()
- func (d DetailList) UpdatePanels(msg tea.Msg, extra tea.Cmd) (tea.Model, tea.Cmd)
- func (d DetailList) View() string
- type DetailListAction
- type DetailListItem
- type DetailListItemDelegate
- type DownloadEpisode
- type FocusAdd
- type FocusRemove
- type Menu
- type MenuItem
- type MenuSetActive
- type MessageCmd
- type SpinnerCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultSelectAction = func(d DetailList) tea.Cmd { return nil }
)
Functions ¶
func DownloadEpisodeAction ¶
func DownloadEpisodeAction(d DetailList) tea.Cmd
func MenuSetActiveCmd ¶
func NewDetailList ¶
Types ¶
type ActionMap ¶
type ActionMap map[string]DetailListAction
type Add ¶
type Add struct {
// contains filtered or unexported fields
}
func (*Add) SetDimensions ¶
func (a *Add) SetDimensions(msg tea.WindowSizeMsg) tea.WindowSizeMsg
type AddContext ¶
type DetailList ¶
type DetailList struct {
// contains filtered or unexported fields
}
func (DetailList) Init ¶
func (d DetailList) Init() tea.Cmd
func (DetailList) SelectedItem ¶
func (d DetailList) SelectedItem() list.Item
func (*DetailList) SetDimensions ¶
func (d *DetailList) SetDimensions(msg tea.WindowSizeMsg)
func (*DetailList) UpdateDetails ¶
func (d *DetailList) UpdateDetails()
func (DetailList) UpdatePanels ¶
func (DetailList) View ¶
func (d DetailList) View() string
type DetailListAction ¶
type DetailListAction func(d DetailList) tea.Cmd
type DetailListItem ¶
type DetailListItemDelegate ¶
type DetailListItemDelegate struct{}
func (DetailListItemDelegate) Height ¶
func (d DetailListItemDelegate) Height() int
Height is the height of the list item.
func (DetailListItemDelegate) Spacing ¶
func (d DetailListItemDelegate) Spacing() int
Spacing is the size of the horizontal gap between list items in cells.
type DownloadEpisode ¶
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
func (*Menu) SetDimensions ¶
func (m *Menu) SetDimensions(msg tea.WindowSizeMsg) tea.WindowSizeMsg
type MenuSetActive ¶
type MenuSetActive struct {
Index int
}
type MessageCmd ¶
type SpinnerCmd ¶
type SpinnerCmd struct{ Active bool }
Click to show internal directories.
Click to hide internal directories.