Static
LogStatic
NotificationStatic
OptionsStatic
RenderStatic
RendererStatic
TableStatic
formatUtility function to format a memory size to a maximum of 4 digits for the integer part by appending the appropriate unit.
the size value to format
the number of digits of the factional part
the language (BCP 47 code, used to determine the delimiter)
Static
instanceStatic
parseConverts a string with HTML source to a single or multiple DOM trees.
the root nodes of the DOM trees
Static
createReturns the data (data-*
Attribute) of the specified
element with the given key. If it does not exist, it
set to the value provided by the supplier function.
the DOM element
the key of the data
the supplier function
Static
findDelegates to the instance's Console.findConletPreview.
Static
findDelegates to the instance's Console.findConletView.
Static
forFinds the lang specific item in a map of items by language. The function first tests for a property as specified by lang, then removes any trailing "-..." from lang and tries again. If not successful, it tests for an entry using "en" and if still no match is found it returns null.
the messages by language identifier
the language identifier
fallback language (defaults to 'en')
Static
initDelegates to Console.init.
Static
localizeLocalizes the given key, using the provided localizations and language.
First, the implementation looks up a mapping using
forLang(l10ns, lang, fallback)
. Then it looks for an entry for key
.
If none is found, it returns the value of key.
the mappings by language identifier
the language identifier
the key to look up
fallback language (defaults to 'en')
Static
lockDelegates to Console.lockMessageQueue.
Static
notificationDelegates to the instance's Console.notification.
Static
notifyDelegates to Console.notifyConletModel.
Rest
...params: any[]Static
registerDelegates to Console.registerConletFunction.
Rest
...args: any[]Static
unlockDelegates to Console.unlockMessageQueue.
Static
uuid
A class with static members that makes the console and the types used by the API available together with some utilty functions. Usually imported as
JGConsole
. Of course, the types and functions may also be imported individually.The class is also registered as
window.JGConsole
for non-modular JavaScript.