Documentation ¶ Index ¶ type Article func New(article *squad.Article, dataset teax.Dataset, parent func() tea.Model) Article func (m Article) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (m Article) View() string type Context func NewCreateForm(maxDim teax.MaxDim) (Context, tea.Cmd) func NewUpdateForm(paragraph squad.Paragraph, maxDim teax.MaxDim) (Context, tea.Cmd) func (m Context) Height() int func (m Context) Init() tea.Cmd func (m Context) KeyMap() help.KeyMap func (m Context) Resize(width, height int) teax.Mode func (m Context) Update(msg tea.Msg) (teax.Mode, tea.Cmd) func (m Context) View() string type Item 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 Source Files ¶ View all Source files article.gocontext.go Click to show internal directories. Click to hide internal directories.