datatree

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 8 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(data interface{}) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

func (Model) WithStyleBlank

func (m Model) WithStyleBlank() Model

func (Model) WithStyleDefault

func (m Model) WithStyleDefault() Model

func (Model) WithStyles

func (m Model) WithStyles(styles Styles) Model

func (Model) WithWidth added in v0.1.1

func (m Model) WithWidth(width int) Model

type Styles

type Styles struct {
	FieldKey lipgloss.Style
}

Jump to

Keyboard shortcuts

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