demo

package
v0.0.0-...-c424ded Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyOptions recursivelist.Options = recursivelist.Options{
	ClosedPrefix: ">",
	OpenPrefix:   "⌵",
	Width:        600,
	Height:       250,
	Expandable:   true,
	Keymap:       recursivelist.DefaultKeys,
}

Functions

This section is empty.

Types

type DemoItem

type DemoItem struct {
	Result *string
	// contains filtered or unexported fields
}

func (DemoItem) FilterValue

func (i DemoItem) FilterValue() string

type DemoModel

type DemoModel struct {
	List list.Model
	// contains filtered or unexported fields
}

func Setup

func Setup() DemoModel

func (DemoModel) Init

func (m DemoModel) Init() tea.Cmd

func (DemoModel) Update

func (m DemoModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (DemoModel) View

func (m DemoModel) View() string

type WrapperModel

type WrapperModel struct {
	InnerValue *recursivelist.Model[rListItem]
}

func (WrapperModel) Init

func (w WrapperModel) Init() tea.Cmd

func (WrapperModel) Update

func (w WrapperModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (WrapperModel) View

func (w WrapperModel) View() string

Jump to

Keyboard shortcuts

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