Documentation ¶
Index ¶
- type Component
- type Identifier
- type Model
- func (m *Model) CreateNextTickCmd(nextTickCmd tea.Cmd) tea.Cmd
- func (m *Model) CurrRow() int
- func (m *Model) FirstItem() int
- func (m *Model) GetDimensions() constants.Dimensions
- func (m *Model) GetFilters() string
- func (m *Model) GetId() int
- func (m *Model) GetMainContent() string
- func (m *Model) GetPagerContent() string
- func (m *Model) GetPromptConfirmation() string
- func (m *Model) GetPromptConfirmationAction() string
- func (m *Model) GetType() string
- func (m *Model) IsPromptConfirmationFocused() bool
- func (m *Model) IsSearchFocused() bool
- func (m *Model) LastItem() int
- func (m *Model) LastUpdated() time.Time
- func (m *Model) MakeSectionCmd(cmd tea.Cmd) tea.Cmd
- func (m *Model) NextRow() int
- func (m *Model) PrevRow() int
- func (m *Model) ResetFilters()
- func (m *Model) ResetPageInfo()
- func (m *Model) SetIsPromptConfirmationShown(val bool) tea.Cmd
- func (m *Model) SetIsSearching(val bool) tea.Cmd
- func (m *Model) SetPromptConfirmationAction(action string)
- func (m *Model) UpdateLastUpdated(t time.Time)
- func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
- func (m *Model) UpdateTotalItemsCount(count int)
- func (m *Model) View() string
- type PromptConfirmation
- type Search
- type Section
- type SectionMsg
- type SectionRowsFetchedMsg
- type SectionTickMsg
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifier ¶
type Model ¶
type Model struct { Id int Config config.SectionConfig Ctx *context.ProgramContext Spinner spinner.Model SearchBar search.Model IsSearching bool SearchValue string Table table.Model Type string SingularForm string PluralForm string Columns []table.Column TotalCount int PageInfo *data.PageInfo PromptConfirmationBox prompt.Model IsPromptConfirmationShown bool PromptConfirmationAction string LastFetchTaskId string }
func (*Model) GetDimensions ¶
func (m *Model) GetDimensions() constants.Dimensions
func (*Model) GetFilters ¶
func (*Model) GetMainContent ¶
func (*Model) GetPagerContent ¶
func (*Model) GetPromptConfirmation ¶
func (*Model) GetPromptConfirmationAction ¶
func (*Model) IsPromptConfirmationFocused ¶
func (*Model) IsSearchFocused ¶
func (*Model) LastUpdated ¶
func (*Model) ResetFilters ¶
func (m *Model) ResetFilters()
func (*Model) ResetPageInfo ¶
func (m *Model) ResetPageInfo()
func (*Model) SetIsPromptConfirmationShown ¶
func (*Model) SetPromptConfirmationAction ¶
func (*Model) UpdateLastUpdated ¶
func (*Model) UpdateProgramContext ¶
func (m *Model) UpdateProgramContext(ctx *context.ProgramContext)
func (*Model) UpdateTotalItemsCount ¶
type PromptConfirmation ¶
type Section ¶
type Section interface { Identifier Component Table Search PromptConfirmation UpdateProgramContext(ctx *context.ProgramContext) MakeSectionCmd(cmd tea.Cmd) tea.Cmd LastUpdated() time.Time UpdateLastUpdated(time.Time) GetPagerContent() string GetItemSingularForm() string GetItemPluralForm() string GetTotalCount() *int }
type SectionRowsFetchedMsg ¶
func (SectionRowsFetchedMsg) GetSectionId ¶
func (msg SectionRowsFetchedMsg) GetSectionId() int
type SectionTickMsg ¶
Click to show internal directories.
Click to hide internal directories.