- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
- Object types
-
Data types
- AccountType
- DynamicFieldType
- EmailType
- OrganisationStructureItemType
- PhoneType
- ReplacementType
- ServiceStatus
- UserStatus
- WatermarkPages
- WatermarkPosition
- AccountFieldTyped
- AccountFieldVoid
- ApplicationField
- Cell
- ClientEventField
- CookieOptions
- DatetimeFieldData
- DynamicBindingField
- DynamicBindingFields
- EnumField
- ErrorArgs
- ErrorObject
- FileField
- FloatFieldData
- GroupStatusField
- HttpResponse
- ImageField
- Language
- MailMessageAddress
- MailMessageAttachment
- MoneyFieldData
- Navigator
- Page
- ParseSpreadsheetOptions
- ParseSpreadsheetResponse
- RefItem
- ReportField
- ReportRef
- Role
- RoleField
- Row
- ServiceStatusInfo
- StaticApplicationFieldData
- StatusField
- TAccount
- TClientEvent
- TDate
- TDatetime
- TDuration
- TEmail
- TEnum
- TFullName
- TMoney
- TPhone
- TReport
- TStatus
- TTable
- TTime
- TTimezone
- TTimezones
- TableField
- UserField
- UserFieldData
- ValidationResult
- Watermark
- WidgetRefWithValues
- ReplacementTypeEnumBase
- RoleType
- TApplication
- TBoolean
- TCategory
- TFile
- TFloat
- TImage
- TJSON
- TLink
- TOAuth2
- TRole
- TString
- TUser
- Global constants
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Data types
Read more in the article about data types.
Type aliases
ReplacementTypeEnumBase
Substitution types
RoleType
Types of objects in Role type fields
TApplication
Link to app item
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
Link to file
TFloat
Number
To learn more, visit [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/Number).
TImage
Image
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
Link to OAuth2
TRole
Role link
TString
String
To learn more, visit [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/String).
TUser
User
Enumerations
Interfaces
Type aliases