Global Data Variables
Global variables store the meta-information about the elements common to all apps. It is a tree-list view of the variables and their respective values.
Last updated
Global variables store the meta-information about the elements common to all apps. It is a tree-list view of the variables and their respective values.
Last updated
Variables | Values |
---|---|
Variables | Values |
---|---|
Variables | Values |
---|---|
Variables | Values |
---|---|
values
Represents the values set using localStorage
methods using JavaScript.
localStorage.setItem("Time now:", Date.now());
width
Width value of the current device in px
height
Height value of the current device in px
deviceType
The type of the device being used.
Mobile/Tablet/Desktop
.
isMobile
true/false
Indicates if the current device is a mobile device.
isTablet
true/false
Indicates if the current device is a tablet device.
isDesktop
true/false
Indicates if the current device is a desktop device.
id
Shows the ID value of the theme currently used.
name
Shows the Name of the theme.
allThemes
Shows the list of themes available on the platform and their corresponding ID/Names.
href
The URL value of the current session from the browser.
hash
query
id
The ID value of the user who is currently logged in. This is the User ID stored in the Appizap backend.
name
Name of the current user set in the profile.
avatarUrl
The URL reference to the profile pic of the current user.
Email address of the logged-in user
ip
The public IP value of the machine, the user logged-in.
groups
The list of group-names where the user is included.
groupId
- the ID of the group stored in the backend.
groupName
- the name of the group.
extra
The string message or information that the developers imprint for reference and implementation.
Shows the list of Hash parameters being passed through the URL. For example - when an event is defined and the action is set to open another app, the parameters can be passed using key-value pairs.
Shows the list of Query parameters being passed through the URL. For example - when an event is defined and the action is set to open another app, the parameters can be passed using key-value pairs.