bubbles

package
v0.0.1-alpha.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPaginator

func NewPaginator(perpage int, itemsLength int) paginator.Model

Types

type ButtonModel

type ButtonModel struct {
	// contains filtered or unexported fields
}

func NewButtonModel

func NewButtonModel(text string, focused bool) *ButtonModel

func (*ButtonModel) Blur

func (m *ButtonModel) Blur()

func (*ButtonModel) Focus

func (m *ButtonModel) Focus() tea.Cmd

func (*ButtonModel) Init

func (m *ButtonModel) Init() tea.Cmd

func (*ButtonModel) Update

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

func (*ButtonModel) Value

func (m *ButtonModel) Value() string

func (*ButtonModel) View

func (m *ButtonModel) View() string

type ListModel

type ListModel struct {
	// contains filtered or unexported fields
}

func NewListModel

func NewListModel(title string, items []string, sorted bool) *ListModel

func (*ListModel) Blur

func (m *ListModel) Blur()

func (*ListModel) Focus

func (m *ListModel) Focus() tea.Cmd

func (*ListModel) Init

func (m *ListModel) Init() tea.Cmd

func (*ListModel) Update

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

func (*ListModel) Value

func (m *ListModel) Value() string

func (*ListModel) View

func (m *ListModel) View() string

type TextInputModel

type TextInputModel struct {
	// contains filtered or unexported fields
}

func NewTextInput

func NewTextInput(title string, placeholder string, charlimit int) *TextInputModel

func (*TextInputModel) Blur

func (m *TextInputModel) Blur()

func (*TextInputModel) Focus

func (m *TextInputModel) Focus() tea.Cmd

func (*TextInputModel) Focused

func (m *TextInputModel) Focused() bool

func (*TextInputModel) Init

func (m *TextInputModel) Init() tea.Cmd

func (*TextInputModel) Update

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

func (*TextInputModel) Value

func (m *TextInputModel) Value() string

func (*TextInputModel) View

func (m *TextInputModel) View() string

Jump to

Keyboard shortcuts

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