Namespaces for use with layout scripts
- Last UpdatedJul 16, 2024
- 1 minute read
Layout scripts can leverage both local and global namespaces, including the About the MyContent namespace, which is local to each individual layout, and About ViewApp namespaces, which are global across the Galaxy. The MyContent namespace can be referenced by layout scripts and expressions used within that layout. This provides the ability to isolate attributes within an individual layout, as opposed to the ViewApp namespace, which can be referenced by all layouts and ViewApps in the Galaxy.
Event-handler scripts, unlike named and built-in scripts, do not require the use of the MyContent namespace when scripting content properties and methods. To script a property or method, start by entering the name of the control instead of "MyContent." The autocomplete function will allow you to see the properties and methods contained in the control as you type.