listprompt

package
v1.55.11 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListPrompt

type ListPrompt struct {
	Prompt string

	Tag string
	// contains filtered or unexported fields
}

func NewListPrompt

func NewListPrompt(args ListPromptArgs) ListPrompt

func (ListPrompt) Choice

func (m ListPrompt) Choice() string

func (ListPrompt) Init

func (m ListPrompt) Init() tea.Cmd

func (ListPrompt) IsComplete

func (m ListPrompt) IsComplete() bool

func (ListPrompt) IsPaginationVisible added in v1.54.7

func (m ListPrompt) IsPaginationVisible() bool

func (*ListPrompt) SetChoice

func (m *ListPrompt) SetChoice(choice string)

func (*ListPrompt) SetMaxDisplayedItems added in v1.54.7

func (m *ListPrompt) SetMaxDisplayedItems(maxDisplayedItems int)

func (*ListPrompt) SetMinimized added in v1.54.7

func (m *ListPrompt) SetMinimized(minimized bool)

func (ListPrompt) Update

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

func (ListPrompt) UpdateListPrompt

func (m ListPrompt) UpdateListPrompt(msg tea.Msg) (ListPrompt, tea.Cmd)

func (ListPrompt) View

func (m ListPrompt) View() string

type ListPromptArgs

type ListPromptArgs struct {
	MaxDisplayedItems int
	Items             []list.ListItem
	Prompt            string
	Tag               string
}

Jump to

Keyboard shortcuts

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