summaryrefslogtreecommitdiff
path: root/docs/guide/typescript/faq.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guide/typescript/faq.md')
-rw-r--r--docs/guide/typescript/faq.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/guide/typescript/faq.md b/docs/guide/typescript/faq.md
index 132900a..15a97e5 100644
--- a/docs/guide/typescript/faq.md
+++ b/docs/guide/typescript/faq.md
@@ -299,3 +299,11 @@ focusable set its keymode.
/>
```
:::
+
+## How to create a Popup
+
+In Gtk4 simply use Gtk's builtin [Popover](https://docs.gtk.org/gtk4/class.Popover.html).
+
+In Gtk3 you can create an [Astal.Window](https://aylur.github.io/libastal/astal3/class.Window.html) and handle click events.
+
+Checkout [examples/gtk3/js/popover](https://github.com/Aylur/astal/tree/main/examples/gtk3/js/popover)