Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelpWidget ¶
HelpWidget is a component with the help text
type TimeEntriesWidget ¶
type TimeEntriesWidget struct { *components.Table TimeEntries []types.TimeEntry }
TimeEntriesWidget is a component with the time entries
func NewTimeEntriesWidget ¶
func NewTimeEntriesWidget() *TimeEntriesWidget
NewTimeEntriesWidget creates new TimeEntriesWidget
func (*TimeEntriesWidget) GetSelectedTimeEntry ¶
func (w *TimeEntriesWidget) GetSelectedTimeEntry() (types.TimeEntry, error)
GetSelectedTimeEntry returns the selected time entry
func (*TimeEntriesWidget) UpdateData ¶
func (w *TimeEntriesWidget) UpdateData(timeEntries []types.TimeEntry, workplace Workplace)
UpdateData updates and reloads TimeEntriesWidget
type TimeEntryWidget ¶
TimeEntryWidget is a component with the single time entry data
func NewTimeEntryWidget ¶
func NewTimeEntryWidget() *TimeEntryWidget
NewTimeEntryWidget creates new TimeEntryWidget
func (*TimeEntryWidget) SetTimeEntry ¶
func (t *TimeEntryWidget) SetTimeEntry(timeEntry types.TimeEntry)
SetTimeEntry sets the value of TimeEntryWidget.TimeEntry
func (*TimeEntryWidget) UpdateTable ¶
func (t *TimeEntryWidget) UpdateTable()
UpdateTable updates table with TimeEntryWidget.TimeEntry data
type UserWidget ¶
UserWidget is a component that displays the user data
func (*UserWidget) SetUser ¶
func (u *UserWidget) SetUser(user types.User)
SetUser sets the value of UserWidget.User
type WorkplacesWidget ¶
type WorkplacesWidget struct { *components.Table Workplaces []Workplace }
WorkplacesWidget is a component that displays workplaces
func NewWorkplacesWidget ¶
func NewWorkplacesWidget() *WorkplacesWidget
NewWorkplacesWidget creates new WorkplacesWidget
func (*WorkplacesWidget) GetSelectedWorkplace ¶
func (w *WorkplacesWidget) GetSelectedWorkplace() (Workplace, error)
GetSelectedWorkplace returns the selected workplace
func (*WorkplacesWidget) SetWorkplaces ¶
func (w *WorkplacesWidget) SetWorkplaces(workplaces []Workplace)
SetWorkplaces sets the value of WorkplacesWidget.Workplaces