Skip to main content

Type Alias: GtkCalendarProps

GtkCalendarProps = WidgetProps & object

Defined in: generated/jsx.ts:1817

Props for the GtkCalendar widget.

Type Declaration

NameTypeDescriptionDefined in
date?GLib.DateTimeThe selected date. This property gets initially set to the current date.generated/jsx.ts:1823
day?numberThe selected day (as a number between 1 and 31).generated/jsx.ts:1825
markedDays?number[] | nullArray of day numbers (1-31) to mark on the calendargenerated/jsx.ts:1855
month?numberThe selected month (as a number between 0 and 11). This property gets initially set to the current month.generated/jsx.ts:1831
onDaySelected?(self) => void | nullEmitted when the user selects a day.generated/jsx.ts:1845
onNextMonth?(self) => void | nullEmitted when the user switches to the next month.generated/jsx.ts:1847
onNextYear?(self) => void | nullEmitted when user switches to the next year.generated/jsx.ts:1849
onPrevMonth?(self) => void | nullEmitted when the user switches to the previous month.generated/jsx.ts:1851
onPrevYear?(self) => void | nullEmitted when user switches to the previous year.generated/jsx.ts:1853
ref?Ref<Gtk.Calendar>-generated/jsx.ts:1856
showDayNames?booleanDetermines whether day names are displayed.generated/jsx.ts:1833
showHeading?booleanDetermines whether a heading is displayed.generated/jsx.ts:1835
showWeekNumbers?booleanDetermines whether week numbers are displayed.generated/jsx.ts:1837
year?numberThe selected year. This property gets initially set to the current year.generated/jsx.ts:1843