page

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func New

func New(
	width, height int,
	filterPrefix, loadingString string,
	selectionEnabled, wrapText bool,
) Model

func (Model) FilterApplied

func (m Model) FilterApplied() bool

func (Model) FilterFocused

func (m Model) FilterFocused() bool

func (Model) GetSelectedPageRow

func (m Model) GetSelectedPageRow() (Row, error)

func (*Model) HideToast

func (m *Model) HideToast()

func (Model) Loading

func (m Model) Loading() bool

func (*Model) SetAllPageData

func (m *Model) SetAllPageData(allPageData []Row)

func (*Model) SetFilterPrefix

func (m *Model) SetFilterPrefix(prefix string)

func (*Model) SetHeader

func (m *Model) SetHeader(header []string)

func (*Model) SetLoading

func (m *Model) SetLoading(isLoading bool)

func (*Model) SetViewportSelectionToBottom

func (m *Model) SetViewportSelectionToBottom()

func (*Model) SetViewportStyle

func (m *Model) SetViewportStyle(headerStyle, contentStyle lipgloss.Style)

func (*Model) SetViewportXOffset

func (m *Model) SetViewportXOffset(n int)

func (*Model) SetWindowSize

func (m *Model) SetWindowSize(width, height int)

func (Model) Update

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

func (Model) View

func (m Model) View() string

func (Model) ViewportSaving

func (m Model) ViewportSaving() bool

type Row

type Row struct {
	Key, Row string
}

func (Row) String

func (r Row) String() string

Jump to

Keyboard shortcuts

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