Type aliases

ReplacementTypeEnumBase

ReplacementTypeEnumBase: Information | Reassign | Full
  • Information: informing
  • Reassign: task reassignment
  • Full: complete transfer of access permissions

RoleType

RoleType: "user" | "group" | "orgstruct"

Types of objects in Role type fields

  • User
  • Group
  • Org chart item

TApplication

TApplication: Data extends object ? ApplicationProjectItemRef<Data & ProjectItemData, Params> : Data extends object ? ApplicationProjectPlanElementItemRef<Data & ProjectPlanElementItemData, Params> : ApplicationItemRef<Data, Params>

TBoolean

TBoolean: boolean

TCategory

TCategory: CategoryItemRef<C>

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

TFloat: number

To learn more, visit [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/Number).

TImage

TImage: ImageItemRef

TJSON

TJSON: any

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

TLink: string

The type is used as a plain string. It is not validated.

Context.data.site_url = 'https://elma365.com/en/';

TOAuth2

TOAuth2: OAuth2Record

TRole

TRole: Role

TString

TString: string

To learn more, visit [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/ Global_Objects/String).

TUser