Documentation
¶
Overview ¶
Package calendar provides Calendar — a text-mode month grid with keyboard / mouse date selection, and CalendarDialog — a modal "pick a date" wrapper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Calendar ¶
type Calendar struct {
views.Base
Selected time.Time
View time.Time // first of the visible month
HeaderColor uint16
WeekColor uint16
DayColor uint16
FocusColor uint16
OtherMonth uint16
}
Calendar paints one month with a focused date.
func (*Calendar) Draw ¶
func (c *Calendar) Draw()
Draw paints title row, weekday header, and the day grid.
func (*Calendar) HandleEvent ¶
HandleEvent: arrows / pageup-down / Home / End for navigation, plus click-to-pick on any cell of the day grid.
Click to show internal directories.
Click to hide internal directories.