Documentation
¶
Index ¶
- type EditTaskKeyMap
- type ErrorMsg
- type EscapeEditMsg
- type Form
- type Model
- func (m Model) Height() int
- func (m Model) Init() tea.Cmd
- func (m Model) SetShowHelp(v bool) Model
- func (m Model) SetShowTitle(v bool) Model
- func (m Model) SetSize(width int, height int) Model
- func (m Model) ShowHelp() bool
- func (m Model) ShowTitle() bool
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) Width() int
- type SaveTaskMsg
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EditTaskKeyMap ¶
type EditTaskKeyMap struct {
SaveField key.Binding
EscapeEditMode key.Binding
SaveTask key.Binding
Help key.Binding
Quit key.Binding
}
func (EditTaskKeyMap) FullHelp ¶
func (e EditTaskKeyMap) FullHelp() [][]key.Binding
func (EditTaskKeyMap) ShortHelp ¶
func (e EditTaskKeyMap) ShortHelp() []key.Binding
type EscapeEditMsg ¶
type EscapeEditMsg struct{}
type Form ¶
type Form struct {
Title textinput.Model
Desc textinput.Model
Date datepicker.Model
Done bool
// contains filtered or unexported fields
}
Form is a Bubble Tea sub-model that encapsulates the editable task fields.
type Model ¶
type Model struct {
// Identity / basic metadata
Title string
TaskID uuid.UUID
IsNew bool
// contains filtered or unexported fields
}
Model for the edit menu.
func NewWithSizeAndStyles ¶
func NewWithSizeAndStyles( width, height int, task task.Task, menuStyles Styles, formStyles Styles, ) Model
NewWithSizeAndStyles is the core constructor used by all others. It allows callers (like the top-level app model) to inject styling for both the edit menu container and the inner form.
func NewWithStyles ¶
NewWithStyles constructs a new edit menu model with explicit styles for the outer edit menu and the inner form.
func (Model) SetShowHelp ¶
func (Model) SetShowTitle ¶
type SaveTaskMsg ¶
Click to show internal directories.
Click to hide internal directories.