Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortMenuModel ¶
type SortMenuModel struct {
// contains filtered or unexported fields
}
func NewSortMenu ¶
func NewSortMenu(options []SortOption) *SortMenuModel
func (*SortMenuModel) Close ¶
func (m *SortMenuModel) Close()
func (*SortMenuModel) HandleKey ¶
func (m *SortMenuModel) HandleKey(key string) (selected interface{}, shouldApply bool)
func (*SortMenuModel) IsVisible ¶
func (m *SortMenuModel) IsVisible() bool
func (*SortMenuModel) Render ¶
func (m *SortMenuModel) Render(currentSortField interface{}, sortDirection SortDirection) string
func (*SortMenuModel) Toggle ¶
func (m *SortMenuModel) Toggle()
type SortOption ¶
type SortState ¶
type SortState struct {
Field interface{}
Direction SortDirection
// contains filtered or unexported fields
}
func NewSortState ¶
func NewSortState() *SortState
func (*SortState) ApplyDirection ¶
func (*SortState) GetIndicator ¶
Click to show internal directories.
Click to hide internal directories.