Documentation
¶
Overview ¶
Package ui responsible with ui
Index ¶
- func Render(ts *services.TaskService) error
- type Item
- type Model
- func (m Model) HandleCompleteTask() (tea.Model, tea.Cmd)
- func (m Model) HandleManualTask() (tea.Model, tea.Cmd)
- func (m Model) HandleResetTask() (tea.Model, tea.Cmd)
- func (m Model) HandleShowTask() (tea.Model, tea.Cmd)
- func (m Model) HandleStartTask() (tea.Model, tea.Cmd)
- func (m Model) HandleTaskStateMsg(msg taskStateMsg) (tea.Model, tea.Cmd)
- func (m Model) HandleTickMsg(msg tickMsg) (tea.Model, tea.Cmd)
- func (m Model) HandleTotalDuration() (tea.Model, tea.Cmd)
- func (m Model) Init() tea.Cmd
- func (m *Model) InitManualInputs()
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶ added in v1.4.3
func Render(ts *services.TaskService) error
Types ¶
type Item ¶
type Item struct {
ItemTitle, Desc string
}
func (Item) Description ¶
func (Item) FilterValue ¶
type Model ¶
type Model struct {
List list.Model
TaskService *services.TaskService
// contains filtered or unexported fields
}
func (Model) HandleTaskStateMsg ¶
func (*Model) InitManualInputs ¶
func (m *Model) InitManualInputs()
InitManualInputs with placeholder and the other details
Click to show internal directories.
Click to hide internal directories.