image

package
v0.0.0-...-766dd70 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoneMsg

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

type Model

type Model struct {
	foam.Common
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Model

func (*Model) Blur

func (m *Model) Blur()

Blur removes focus from the viewport.

func (*Model) CanGrow

func (m *Model) CanGrow() bool

func (*Model) Focus

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

Focus sets the viewport to be focused.

func (*Model) Focused

func (m *Model) Focused() bool

func (*Model) Init

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

func (*Model) LoadURL

func (m *Model) LoadURL(url string) tea.Cmd

func (*Model) Redraw

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

func (*Model) SetHeight

func (m *Model) SetHeight(h int)

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

func (*Model) SetURL

func (m *Model) SetURL(url string)

func (*Model) SetWidth

func (m *Model) SetWidth(w int)

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

type Option

type Option func(*Model)

func WithStyles

func WithStyles(styles *foam.Styles) Option

Jump to

Keyboard shortcuts

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