Global
Updated on Sep 3, 2025 2 minutes to readProperties
Property | Description |
---|---|
object | List-type metadata available in Object Form to read and modify attributes. |
vars | Shared variables across server, client, and components within a form. |
Methods
Method | Description |
---|---|
$on | Registers an event listener. Supports generic and specific events. |
$t | Translates a key into a string, optionally with parameters. |
isMobileApp | Returns whether the app is running in a mobile environment. |
Methods Details
$on()
• Type
(name: string, callback: Function) => void
• Details
Expects an event name and a callback function.
Registers a listener that will be triggered when the specified server event occurs.
• Example
E8App.$on('before-save', () => {
//
});
$t()
• Type
(key: string, params?: object) => string
• Details
Expects a key and optionally params for interpolation.
Returns the localized string.
isMobileApp()
• Type
() => boolean
• Details
Returns true
if the app is running in a mobile environment, otherwise false
.