mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Node.js: Document global singletons
This commit is contained in:
parent
e619a50601
commit
9f440c2699
4 changed files with 61 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue