BaseInteractiveElement
Various types of Actions:
Api Action
- TypeScript
- TypeScript
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
BaseInteractiveElement
Various types of Actions:
| Action | Description | Key |
|---|---|---|
| API Action | To perform Post, PUT , DELETE, PATCH type of API actions on the user-defined APIs with given payload | apiAction |
| URL Navigation | To open any defined action on given url | urlNavigation |
| Custom Action | To set custom action on front end | customAction |
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
const urlNavigation = new URLNavigationAction(
url: "https://www.cometchat.com/",//Replace this with the required url
);
Was this page helpful?