rate

package
v0.0.0-...-191fbf7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T number](name string, theme configuration.Theme) tea.Model

Types

type Model

type Model[T number] struct {
	// contains filtered or unexported fields
}

func (Model[T]) Focus

func (Model[T]) Focus() bool

func (Model[T]) Init

func (Model[T]) Init() tea.Cmd

func (Model[T]) Labels

func (model Model[T]) Labels() []string

func (Model[T]) Legends

func (model Model[T]) Legends() []string

func (Model[T]) Update

func (model Model[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model[T]) UpdateAsBoxed

func (model Model[T]) UpdateAsBoxed(msg tea.Msg) (helpers.BoxedModel, tea.Cmd)

func (Model[T]) View

func (model Model[T]) View() string

type PushMsg

type PushMsg[T number] struct {
	Value T
}

Jump to

Keyboard shortcuts

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