Module ratatui::widgets::calendar

source ·
Expand description

A simple calendar widget. (feature: widget-calendar)

The Monthly widget will display a calendar for the monh provided in display_date. Days are styled using the default style unless:

  • show_surrounding is set, then days not in the display_date month will use that style.
  • a style is returned by the DateStyler for the day

Monthly has several controls for what should be displayed

Structs

Traits

  • Provides a method for styling a given date. [Month] is generic on this trait, so any type that implements this trait can be used.