ui

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	WindowSize tea.WindowSizeMsg
	Running    *sync.WaitGroup
	Config     HandlerConfig

	bubbly.EventHandler
	// contains filtered or unexported fields
}

func New

func New(cfg HandlerConfig) *Handler

func (*Handler) OnMessage

func (m *Handler) OnMessage(msg tea.Msg)

func (*Handler) Wait

func (m *Handler) Wait()

type HandlerConfig

type HandlerConfig struct {
	TitleWidth        int
	AdjustDefaultTask func(taskprogress.Model) taskprogress.Model
}

func DefaultHandlerConfig

func DefaultHandlerConfig() HandlerConfig

Jump to

Keyboard shortcuts

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