app

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	teax.Model[Item]
}

func New

func New(squad *squad.SQuAD, title string, dataset teax.Dataset) App

func (App) Update

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

func (App) View

func (m App) View() string

type Item

type Item = squad.Article

type Title

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

func NewCreateForm

func NewCreateForm(maxWidth int) (Title, tea.Cmd)

func NewUpdateForm

func NewUpdateForm(article squad.Article, maxWidth int) (Title, tea.Cmd)

func (Title) Height

func (m Title) Height() int

func (Title) KeyMap

func (m Title) KeyMap() help.KeyMap

func (Title) Resize

func (m Title) Resize(width, height int) teax.Mode

func (Title) Update

func (m Title) Update(msg tea.Msg) (teax.Mode, tea.Cmd)

func (Title) View

func (m Title) View() string

Jump to

Keyboard shortcuts

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