Type aliases
ReplacementTypeEnumBase
Substitution types
- 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
Boolean value
To learn more, visit MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/Boolean.
TCategory
Category (Folder)
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
Number
To learn more, visit [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/Number).
TImage
TJSON
Arbitrary type (JSON)
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
Link (URL)
The type is used as a plain string. It is not validated.
Context.data.site_url = 'https://elma365.com/en/';
TOAuth2
TRole
TString
String
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.