Documentation
¶
Index ¶
- type CategoriesFetchedMsg
- type CategoryRow
- type Model
- func (m *Model) CurrRow() section.RowData
- func (m *Model) CurrRowIndex() int
- func (m *Model) FetchNextPageSectionRows() []tea.Cmd
- func (m *Model) FilterRows(query string)
- func (m *Model) FirstItem()
- func (m *Model) GetConfig() section.SectionConfig
- func (m *Model) GetId() int
- func (m *Model) GetIsLoading() bool
- func (m *Model) GetTotalCount() int
- func (m *Model) GetType() string
- func (m *Model) IsSearchFocused() bool
- func (m *Model) LastItem()
- func (m *Model) NextRow() section.RowData
- func (m *Model) NumRows() int
- func (m *Model) PrevRow()
- func (m *Model) ResetFilters()
- func (m *Model) ResetRows()
- func (m *Model) SetIsLoading(v bool)
- func (m *Model) SetSize(w, h int)
- func (m *Model) Update(msg tea.Msg) (section.Section, tea.Cmd)
- func (m *Model) UpdateProgramContext(ctx *tuicontext.ProgramContext)
- func (m *Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoriesFetchedMsg ¶
type CategoryRow ¶
func (CategoryRow) GetColumns ¶
func (r CategoryRow) GetColumns() []string
func (CategoryRow) GetId ¶
func (r CategoryRow) GetId() string
func (CategoryRow) GetTitle ¶
func (r CategoryRow) GetTitle() string
func (CategoryRow) GetUrl ¶
func (r CategoryRow) GetUrl() string
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(id int, ctx *tuicontext.ProgramContext, cfg section.SectionConfig) *Model
func (*Model) CurrRowIndex ¶
func (*Model) FetchNextPageSectionRows ¶
func (*Model) FilterRows ¶
func (*Model) GetConfig ¶
func (m *Model) GetConfig() section.SectionConfig
func (*Model) GetIsLoading ¶
func (*Model) GetTotalCount ¶
func (*Model) IsSearchFocused ¶
func (*Model) ResetFilters ¶
func (m *Model) ResetFilters()
func (*Model) SetIsLoading ¶
func (*Model) UpdateProgramContext ¶
func (m *Model) UpdateProgramContext(ctx *tuicontext.ProgramContext)
Click to show internal directories.
Click to hide internal directories.