view

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	reactea.BasicComponent
	reactea.BasicPropfulComponent[Props]

	Viewport viewport.Model
	// contains filtered or unexported fields
}

func New

func New() *Component

func (Component) Height

func (m Component) Height() int

Height returns the viewport height of the list.

func (*Component) Init

func (m *Component) Init(props Props) tea.Cmd

func (*Component) Render

func (m *Component) Render(w, h int) string

func (*Component) SetHeight

func (m *Component) SetHeight(h int)

func (*Component) SetWidth

func (m *Component) SetWidth(w int)

func (*Component) Update

func (m *Component) Update(msg tea.Msg) tea.Cmd

func (Component) Width

func (m Component) Width() int

Width returns the viewport width of the list.

type Props

type Props struct {
	Fields item.Choices
}

Jump to

Keyboard shortcuts

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