Documentation ¶
Index ¶
- type BaseModel
- func (m *BaseModel) CreateNextTickCmd(nextTickCmd tea.Cmd) tea.Cmd
- func (m *BaseModel) CurrRow() int
- func (m *BaseModel) FirstItem() int
- func (m *BaseModel) GetDimensions() constants.Dimensions
- func (m *BaseModel) GetFilters() string
- func (m *BaseModel) GetId() int
- func (m *BaseModel) GetMainContent() string
- func (m *BaseModel) GetPagerContent() string
- func (m *BaseModel) GetPromptConfirmation() string
- func (m *BaseModel) GetPromptConfirmationAction() string
- func (m *BaseModel) GetType() string
- func (m *BaseModel) IsPromptConfirmationFocused() bool
- func (m *BaseModel) IsSearchFocused() bool
- func (m *BaseModel) LastItem() int
- func (m *BaseModel) LastUpdated() time.Time
- func (m *BaseModel) MakeSectionCmd(cmd tea.Cmd) tea.Cmd
- func (m *BaseModel) NextRow() int
- func (m *BaseModel) PrevRow() int
- func (m *BaseModel) ResetFilters()
- func (m *BaseModel) ResetPageInfo()
- func (m *BaseModel) ResetRows()
- func (m *BaseModel) SetIsPromptConfirmationShown(val bool) tea.Cmd
- func (m *BaseModel) SetIsSearching(val bool) tea.Cmd
- func (m *BaseModel) SetPromptConfirmationAction(action string)
- func (m *BaseModel) UpdateProgramContext(ctx *context.ProgramContext)
- func (m *BaseModel) UpdateTotalItemsCount(count int)
- func (m *BaseModel) View() string
- type Component
- type Identifier
- 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 BaseModel ¶ added in v4.5.0
type BaseModel 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 (*BaseModel) CreateNextTickCmd ¶ added in v4.5.0
func (*BaseModel) GetDimensions ¶ added in v4.5.0
func (m *BaseModel) GetDimensions() constants.Dimensions
func (*BaseModel) GetFilters ¶ added in v4.5.0
func (*BaseModel) GetMainContent ¶ added in v4.5.0
func (*BaseModel) GetPagerContent ¶ added in v4.5.0
func (*BaseModel) GetPromptConfirmation ¶ added in v4.5.0
func (*BaseModel) GetPromptConfirmationAction ¶ added in v4.5.0
func (*BaseModel) IsPromptConfirmationFocused ¶ added in v4.5.0
func (*BaseModel) IsSearchFocused ¶ added in v4.5.0
func (*BaseModel) LastUpdated ¶ added in v4.5.0
func (*BaseModel) MakeSectionCmd ¶ added in v4.5.0
func (*BaseModel) ResetFilters ¶ added in v4.5.0
func (m *BaseModel) ResetFilters()
func (*BaseModel) ResetPageInfo ¶ added in v4.5.0
func (m *BaseModel) ResetPageInfo()
func (*BaseModel) SetIsPromptConfirmationShown ¶ added in v4.5.0
func (*BaseModel) SetIsSearching ¶ added in v4.5.0
func (*BaseModel) SetPromptConfirmationAction ¶ added in v4.5.0
func (*BaseModel) UpdateProgramContext ¶ added in v4.5.0
func (m *BaseModel) UpdateProgramContext(ctx *context.ProgramContext)
func (*BaseModel) UpdateTotalItemsCount ¶ added in v4.5.0
type Identifier ¶
type PromptConfirmation ¶
type Section ¶
type Section interface { Identifier Component Table Search PromptConfirmation UpdateProgramContext(ctx *context.ProgramContext) MakeSectionCmd(cmd tea.Cmd) tea.Cmd 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.