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 struct {
ItemTitle string
Activate func(msg tea.Msg, currentModel tea.Model) (tea.Model, tea.Cmd)
// I know this is ugly but generics are coming soon and I cba
Extra interface{}
}
func (SimpleItem) Description ¶
func (n SimpleItem) Description() string
func (SimpleItem) FilterValue ¶
func (n SimpleItem) FilterValue() string
func (SimpleItem) GetTitle ¶
func (n SimpleItem) GetTitle() string
func (SimpleItem) Title ¶
func (n SimpleItem) Title() string
Click to show internal directories.
Click to hide internal directories.