Skip to main content
Version: v4

Action Entity

Base class for defining the type of actions that can be performed on BaseInteractiveElement

ActionDescriptionKey
Api ActionTo perform Post, PUT, DELETE, PATCH type of API actions on the user-defined APIs with given payloadapiAction
URL NavigationTo open any defined action on a given URLurlNavigation
Custom ActionTo set custom action on the front endcustomAction

Api Action

const apiAction = new APIAction(
url, //Replace this with the required url
HTTPSRequestMethods.POST //replace this with the type of method
);

apiAction.setPayload(payload); //set the payloaf forn the request

apiAction.setHeaders(headers); //set the header for the request

apiAction.setDataKey("cometchatData"); //replace this with the key , if you want to replace the key oin which all the data for form will be sent

Url Navigation

const urlNavigation = new URLNavigationAction(
url: "https://www.cometchat.com/",//Replace this with the required url
);