Node.js: Document global singletons

This commit is contained in:
Simon Hausmann 2024-01-23 16:24:48 +01:00 committed by Simon Hausmann
parent e619a50601
commit 9f440c2699
4 changed files with 61 additions and 1 deletions

View file

@ -111,7 +111,7 @@ private:
You can declare <a href="../slint/src/reference/globals.html">globally available singletons</a> in your
`.slint` files. If exported, these singletons are available via the
`global()` getter function on the generated C++ class. Each global singleton
maps to a class iwith getter/setter functions for properties and callbacks,
maps to a class with getter/setter functions for properties and callbacks,
similar to API that's created for your `.slint` component.
For example the following `.slint` markup defines a global `Logic` singleton that's also exported: