class

Tui::Calendar

Inherits Tui::Widget / Tui::Reactive / Reference / Object

Constants

WEEKDAYS = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
WEEKDAYS_SHORT = ["M", "T", "W", "T", "F", "S", "S"]

Constructors

new(id : String | Nil = nil, date : Time | Nil = nil)
Source

Instance methods

day_style
Source
day_style=(day_style : Style)
Source
header_style

Styling

Source
header_style=(header_style : Style)

Styling

Source
min_size
Source
next_month

Navigate months

Source
next_year
Source
on_event(event : Event) : Bool

Override to handle events for this widget (target/bubble phase) Called after children have had a chance to handle the event

Source
on_select

Callback when date is selected

Source
other_month_style
Source
other_month_style=(other_month_style : Style)
Source
prev_month
Source
prev_year
Source
render(buffer : Buffer, clip : Rect) : Nil

Override to render widget content

Source
select_date(date : Time) : Nil

Select date

Source
selected_date
Source
selected_date=(selected_date : Time)
Source
selected_style
Source
selected_style=(selected_style : Style)
Source
show_week_numbers
Source
show_week_numbers=(show_week_numbers : Bool)
Source
today

Go to today

Source
today_style
Source
today_style=(today_style : Style)
Source
weekday_style
Source
weekday_style=(weekday_style : Style)
Source