Documentation
¶
Index ¶
- Variables
- type Model
- func (m *Model) CreateNextTickCmd(nextTickCmd tea.Cmd) tea.Cmd
- func (m *Model) FirstItem() int
- func (m *Model) GetDimensions() constants.Dimensions
- func (m *Model) GetIsLoading() bool
- func (m *Model) LastItem() int
- func (m *Model) NextRow() int
- func (m *Model) PrevRow() int
- func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
- type View
- type ViewMsg
- type ViewRowsFetchedMsg
- type ViewTickMsg
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { Id int Ctx *context.ProgramContext Spinner spinner.Model IsLoading bool Table table.Model Type string }
func (*Model) GetDimensions ¶
func (m *Model) GetDimensions() constants.Dimensions
func (*Model) GetIsLoading ¶
func (*Model) UpdateProgramContext ¶
func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
type View ¶
type View interface { Id() int Update(msg tea.Msg) (View, tea.Cmd) View() string NumRows() int GetCurrRow() data.RowData NextRow() int PrevRow() int FirstItem() int LastItem() int FetchViewRows() tea.Cmd GetIsLoading() bool GetViewColumns() []table.Column BuildRows() []table.Row UpdateProgramContext(ctx *context.ProgramContext) }
type ViewRowsFetchedMsg ¶
type ViewRowsFetchedMsg struct {
ViewId int
}
func (ViewRowsFetchedMsg) GetViewId ¶
func (msg ViewRowsFetchedMsg) GetViewId() int
type ViewTickMsg ¶
func (ViewTickMsg) GetViewId ¶
func (msg ViewTickMsg) GetViewId() int
func (ViewTickMsg) GetViewType ¶
func (msg ViewTickMsg) GetViewType() string
Click to show internal directories.
Click to hide internal directories.