checklist

package
v1.58.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MPL-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	Render(selected, checked bool) string
}

type Model

type Model[I Item] struct {
	Data    []I
	PerPage int
	Initial []bool
	// contains filtered or unexported fields
}

func (Model[I]) Checked

func (m Model[I]) Checked() []I

func (Model[I]) CheckedIndices

func (m Model[I]) CheckedIndices() []int

func (Model[I]) Selected

func (m Model[I]) Selected() (I, bool)

func (Model[I]) Update

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

Update method responds to various events and modifies the data model according to the corresponding events

func (Model[I]) View

func (m Model[I]) View() string

Jump to

Keyboard shortcuts

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