table

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

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

func NewBuilder

func NewBuilder(styles table.Styles) *Build

func (*Build) Build

func (b *Build) Build(params BuildParams, opts ...table.Option) table.Model

type BuildParams

type BuildParams struct {
	Width             int
	AltView           bool
	Resources         []resource.Resource
	ProjectIDsToNames map[string]string
}

type Model

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

func Table

func Table(state ui.ApplicationState) Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Focus

func (m *Model) Focus()

func (Model) Height

func (m Model) Height() int

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Resources added in v0.2.1

func (m Model) Resources() []resource.Resource

func (*Model) SelectedResource

func (m *Model) SelectedResource() resource.Resource

func (*Model) SetDimensions

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

func (Model) Update

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

func (*Model) UpdateResources

func (m *Model) UpdateResources(resources []resource.Resource)

func (Model) View

func (m Model) View() string

func (Model) Width

func (m Model) Width() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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