previewui

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const RENDER_LINE_MARGIN = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Viewport viewport.Model
	// contains filtered or unexported fields
}

func New

func New(title, content string, w, h int, wPercent, hPercent float64) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetSize

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

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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