Declare a global singleton with global Name { /* .. properties or callbacks .. */ } to
make properties and callbacks available throughout the entire project. Access them using Name.property.
For example, this can be useful for a common color palette:
Export a global to make it accessible from other files (see Modules). Export a global from
the file also exporting the main application component to make it visible
to native code in the business logic.
Usage from RustUsage from C++Usage from JavaScript
It’s possible to re-expose a callback or properties from a global using the two way binding syntax.