Closed mylinuxforwork closed 1 week ago
Works for me
import { GObject } from "astal";
import { astalify, ConstructProps, Gtk } from "astal/gtk3";
class Calendar extends astalify(Gtk.Calendar) {
static {
GObject.registerClass(this);
}
constructor(
props: ConstructProps<Gtk.Calendar, Gtk.Calendar.ConstructorProps>,
) {
super(props as any);
}
}
export default () => {
return (
<box className={"calendar"}>
{new Calendar({ hexpand: true, vexpand: true })}
</box>
);
};
@PoSayDone Great. Thank you. Will try later.
Have you read through the documentation?
Describe what have you tried so far I am using ags in my configuration and v1 included the possibility to add a calendar widget.
Describe your question Is there a way with astral to generate a similar calendar widget? Couldn’t find it in the shipped widget list.