Type aliases
ReplacementTypeEnumBase
- Information: informing
- Reassign: task reassignment
- Full: complete transfer of access permissions
RoleType
Types of objects in Role type fields
- User
- Group
- Org chart item
TApplication
TBoolean
To learn more, visit MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/Boolean.
TCategory
Link to an app item category. For the files structure or an app’s folder hierarchy, it’s a link to a folder.
TFile
TFloat
To learn more, visit [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/Number).
TImage
TJSON
This type is used to pass or store arbitrary data in the context.
Context.data.json = {
'my-string': 'string data',
'my- num': 1234,
'my-bool': true,
'my-array': [ 'string', 999, false ],
'my-object': {
// You can use a nested object here as well
}
};
Note that if you use this type in a serializable context ( for example, in the server context of a widget), its value can only be of JSON basic data types. However, it is possible to use this type to pass arbitrary values between widgets on the client side using binding of incoming variables.
// Widget 1 (external)
async function onInit() {
Context.data.json = {
onSaveCallback: async () => await saveFunction() // Writing the link to the function
};
}
async function saveFunction() {
// Event processing logic
}
// Widget 2 (internal)
async function onSaveClick() {
await Context.data.in_json?. onSaveCallback?.();
}
TLink
The type is used as a plain string. It is not validated.
Context.data.site_url = 'https://elma365.com/en/';
TOAuth2
TRole
TString
To learn more, visit [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/String).
Data types
Read more in the article about data types.