Calendar
This component displays calendar data in different styles (e. g. , monthly or weekly view) and supports rendering events within a defined viewport. It allows customization of frame, style, and colors to adapt to different use cases.
Constructors
Calendar
Calendar creates a new TCalendar initialized with the current year, a yearly timeline style, and default colors.
Methods
| Method | Description |
|---|---|
Append(events ...) | Append adds one or more events to the existing calendar events. |
Colors(colors Colors) | Colors customizes the color scheme used for rendering the calendar and its events. |
Frame(frame ui.Frame) | Frame defines the layout frame (size, width, height) for the calendar component. |
Style(style Style) | Style sets the display style (e.g., timeline view) for the calendar. |
ViewPort(vp ViewPort) | ViewPort sets the visible time range (e.g., year, month) of the calendar. |