section

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RowData

type RowData interface {
	GetId() string
	GetTitle() string
	GetUrl() string
	GetColumns() []string
}

type Section

type Section interface {
	GetId() int
	GetType() string
	GetConfig() SectionConfig
	CurrRow() RowData
	NextRow() RowData
	PrevRow()
	FirstItem()
	LastItem()
	NumRows() int
	CurrRowIndex() int
	View() string
	Update(msg tea.Msg) (Section, tea.Cmd)
	FetchNextPageSectionRows() []tea.Cmd
	ResetFilters()
	ResetRows()
	SetIsLoading(bool)
	GetIsLoading() bool
	GetTotalCount() int
	IsSearchFocused() bool
	UpdateProgramContext(*context.ProgramContext)
}

type SectionConfig

type SectionConfig struct {
	Title   string
	Filters string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL