Modularize the calendar widget

This commit is contained in:
Jas Singh
2024-07-02 21:48:59 -07:00
parent 651d2f2e86
commit 5846470441
4 changed files with 383 additions and 375 deletions

View File

@@ -0,0 +1,22 @@
const CalendarWidget = () => {
return Widget.Box({
class_name: "calendar-menu-item-container calendar",
hpack: "fill",
vpack: "fill",
expand: true,
child: Widget.Box({
class_name: "calendar-container-box",
child: Widget.Calendar({
expand: true,
hpack: "fill",
vpack: "fill",
class_name: "calendar-menu-widget",
showDayNames: true,
showDetails: false,
showHeading: true,
}),
}),
});
};
export { CalendarWidget };