Documentation
¶
Index ¶
- type Hit
- type ModeOption
- type Model
- func (m Model) CloudShare() Result
- func (m Model) Content(width, height int) string
- func (m Model) Continue() Result
- func (m Model) MouseHit(x, y, width, height int) Hit
- func (m Model) RowAt(x, y, width, height int) int
- func (m Model) StatusHint() string
- func (m Model) ToggleRow(i int) Model
- func (m Model) Update(msg tea.KeyMsg) (Model, Result)
- func (m Model) UpdateHover(x, y, width, height int) Model
- type Result
- type SaveMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModeOption ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) CloudShare ¶
CloudShare produces the result for uploading the fill/sign document to the cloud.
func (Model) Continue ¶
Continue produces the save result for the current selection — the same action as pressing enter or clicking the continue button.
func (Model) MouseHit ¶
MouseHit reports which button the given content-area coordinate lands on. It locates the buttons by scanning the rendered output for their labels, so it stays in sync with the view layout by construction.
func (Model) RowAt ¶
RowAt reports the index of the checkbox row at the given content-area coordinate, or -1. The clickable area spans the indicator and the label.
func (Model) ToggleRow ¶
ToggleRow toggles the checkbox row with the given index — the same action as moving the cursor there and pressing space.
type Result ¶
type Result struct {
Done bool
Saved bool
FillSignOnly bool
Options []ModeOption
}
Source Files
¶
- model.go
- mouse.go
- update.go
- view.go