article

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 Article

type Article struct {
	teax.Model[Item]
	// contains filtered or unexported fields
}

func New

func New(
	article *squad.Article,
	dataset teax.Dataset,
	parent func() tea.Model,
) Article

func (Article) Update

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

func (Article) View

func (m Article) View() string

type Context

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

func NewCreateForm

func NewCreateForm(maxDim teax.MaxDim) (Context, tea.Cmd)

func NewUpdateForm

func NewUpdateForm(
	paragraph squad.Paragraph,
	maxDim teax.MaxDim,
) (Context, tea.Cmd)

func (Context) Height

func (m Context) Height() int

func (Context) Init

func (m Context) Init() tea.Cmd

func (Context) KeyMap

func (m Context) KeyMap() help.KeyMap

func (Context) Resize

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

func (Context) Update

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

func (Context) View

func (m Context) View() string

type Item

type Item = squad.Paragraph

Jump to

Keyboard shortcuts

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