Built-in JS functions
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
utils.logoutUser()
message - global notification
localStorage
Method
Description
localStorage.values
localStorage.setItem()
localStorage.removeItem()
localStorage.clear()
Responsiveness / Screen information
screenInfo.deviceType
screenInfo.height
screenInfo.width
screenInfo.isDesktop
screenInfo.isTablet
screenInfo.isMobile
Last updated
Was this helpful?