Documentation ¶
Index ¶
- Variables
- func Start(hlcmd accounting.HledgerCmd, config Config, isDebug bool)
- type Config
- type ContentModel
- type Period
- type TabItem
- type Table
- func (t *Table) Init() tea.Cmd
- func (t *Table) IsReady() bool
- func (t *Table) SetColumns(firstRow table.Row)
- func (t *Table) SetContent(msg tea.Msg)
- func (t *Table) SetHeight(height int)
- func (t *Table) SetUnready()
- func (t *Table) SetWidth(width int)
- func (t *Table) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (t *Table) View() string
- type TableData
- type Tabs
- type Theme
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ PeriodType: hledger.PeriodYearly, StartDate: fmt.Sprintf("%v", time.Now().Year()), EndDate: "", }
Functions ¶
func Start ¶
func Start(hlcmd accounting.HledgerCmd, config Config, isDebug bool)
Types ¶
type Config ¶
type Config struct { PeriodType hledger.PeriodType `json:"period"` StartDate string `json:"startDate"` EndDate string `json:"endDate"` }
func (*Config) UnmarshalJSON ¶
type ContentModel ¶
ContentModel extends the tea.Model interface with methods which make it possible to dynamically update the content and set the model to an "unready" status.
type Table ¶
func (*Table) SetColumns ¶
func (*Table) SetContent ¶
func (*Table) SetUnready ¶
func (t *Table) SetUnready()
type Tabs ¶
type Tabs struct {
// contains filtered or unexported fields
}
func (*Tabs) CurrentTab ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.