Built-in JavaScript Functions
These functionalities are easily accessible within the platform as they are pre-installed features. They are integrated directly into the system for convenient use.
utils - utility functions
utils.openUrl()
// Syntax
utils.openUrl( url: string, options?: { newTab: boolean = true } )Parameter
Description
// Example: Open google.com in a new tab.
utils.openUrl("https://www.google.com", { newTab: true })utils.openApp()
// Syntax
utils.openApp( applicationId: string, options?: { queryParams?: {"key":"value"}, hashParams?: {"key":"value"}, newTab: true } )Parameter
Description
utils.downloadFile()
Parameter
Description
utils.copyToClipboard()
Parameter
Description
message - global notification
toast - dismissible stack-able notifications
localStorage
Method
Description
localStorage.values
localStorage.setItem()
localStorage.removeItem()
localStorage.clear()
Last updated
