Skip to main content

Type Alias: GtkCalendarProps

GtkCalendarProps = WidgetProps & object

Defined in: generated/jsx.ts:2162

Props for the GtkCalendar widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:2199
date?GLib.DateTimeThe selected date. This property gets initially set to the current date.generated/jsx.ts:2168
day?numberThe selected day (as a number between 1 and 31).generated/jsx.ts:2170
month?numberThe selected month (as a number between 0 and 11). This property gets initially set to the current month.generated/jsx.ts:2176
onDaySelected()?(self) => void | nullEmitted when the user selects a day.generated/jsx.ts:2190
onNextMonth()?(self) => void | nullEmitted when the user switches to the next month.generated/jsx.ts:2192
onNextYear()?(self) => void | nullEmitted when user switches to the next year.generated/jsx.ts:2194
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:2205
onPrevMonth()?(self) => void | nullEmitted when the user switches to the previous month.generated/jsx.ts:2196
onPrevYear()?(self) => void | nullEmitted when user switches to the previous year.generated/jsx.ts:2198
ref?Ref<Gtk.Calendar>-generated/jsx.ts:2211
showDayNames?booleanDetermines whether day names are displayed.generated/jsx.ts:2178
showHeading?booleanDetermines whether a heading is displayed.generated/jsx.ts:2180
showWeekNumbers?booleanDetermines whether week numbers are displayed.generated/jsx.ts:2182
year?numberThe selected year. This property gets initially set to the current year.generated/jsx.ts:2188