subframe

package
v0.0.0-...-e353533 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 3 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 {
	Style   lipgloss.Style
	Content subview.Model
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (Model, error)

func (*Model) Init

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

func (*Model) Reset

func (m *Model) Reset()

func (*Model) SetHeight

func (m *Model) SetHeight(height int)

func (*Model) SetWidth

func (m *Model) SetWidth(width int)

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

type Option

type Option func(options *options) error

func WithBorder

func WithBorder() Option

func WithBorderColor

func WithBorderColor(color lipgloss.AdaptiveColor) Option

func WithComponent

func WithComponent(content subview.Model) Option

func WithFixedSize

func WithFixedSize() Option

func WithHeight

func WithHeight(height int) Option

func WithHorizontalAlignment

func WithHorizontalAlignment(alignment lipgloss.Position) Option

func WithVerticalAlignment

func WithVerticalAlignment(alignment lipgloss.Position) Option

func WithWidth

func WithWidth(width int) Option

Jump to

Keyboard shortcuts

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