-
<static> getAutomationMode() → {string}
-
Gets the automation mode.
- Source:
- See:
-
Returns:
automation mode
-
Type
-
string
-
<static> getLocale() → {string}
-
Retrieves the current locale
- Source:
Returns:
current locale
-
Type
-
string
-
<static> getResourceUrl(relativePath) → {string}
-
Retrieves a URL for loading a component-specific resource.
The URL is resolved as follows:
1. If the application has specified a base URL with setResourceBaseUrl(), the return values will be
a relative path appended to the base URL.
2. Otherwise, if the application running with an AMD Loader (such as Require.js), the parent folder of a
module with ojs/ mapping will be used as a base URL.
3. Otherwise, the original relative path will be returned.
Parameters:
Name |
Type |
Description |
relativePath |
string
|
resource path |
- Source:
- See:
-
Returns:
resource URL
-
Type
-
string
-
<static> getVersionInfo() → {string}
-
Return a string containing important version information about JET and the libraries
it has loaded
- Source:
Returns:
-
Type
-
string
-
<static> logVersionInfo()
-
Dump information to the browser's console containing important version information about JET and
the libraries it has loaded
- Source:
-
<static> setAutomationMode(mode)
-
Sets the automation mode.
Parameters:
Name |
Type |
Description |
mode |
string
|
"enabled" for running in automation mode |
- Source:
- See:
-
-
<static> setLocale(locale, callback)
-
Changes the current locale
Parameters:
Name |
Type |
Description |
locale |
string
|
(language code and subtags separated by dash) |
callback |
Function
|
for applications running with an AMD Loader (such as Require.js), this optional callback
will be invoked when the framework is done loading its translated resources and Locale Elements for the newly specified locale.
For applications running without an AMD loader, this optional callback will be invoked immediately |
- Source:
-
<static> setResourceBaseUrl(baseUrl)
-
Sets the base URL for retrieving component-specific resources
Parameters:
Name |
Type |
Description |
baseUrl |
string
|
base URL |
- Source:
- See:
-