Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ListStyles list.Styles LabelStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(lipgloss.Color("202")) TitleStyle = list.DefaultStyles().Title.Background(lipgloss.Color("22")) NonListTitleStyle = TitleStyle.Copy().MarginLeft(2).Background(lipgloss.Color("22")) )
Functions ¶
func NewItemDelegate ¶
func NewItemDelegate() list.ItemDelegate
Types ¶
type SimpleItem ¶
type SimpleItem[T tea.Model] struct { ItemTitle string Activate func(msg tea.Msg, currentModel T) (tea.Model, tea.Cmd) }
func (SimpleItem[any]) Description ¶
func (n SimpleItem[any]) Description() string
func (SimpleItem[any]) FilterValue ¶
func (n SimpleItem[any]) FilterValue() string
func (SimpleItem[any]) GetTitle ¶
func (n SimpleItem[any]) GetTitle() string
func (SimpleItem[any]) Title ¶
func (n SimpleItem[any]) Title() string
type SimpleItemExtra ¶ added in v0.0.9
type SimpleItemExtra[T tea.Model, E any] struct { SimpleItem[T] Extra E }
Click to show internal directories.
Click to hide internal directories.