Creates a new iframe instance of the extension in the specified location.
zohobugtracker.invoke("modal.create",modal_location);
Argument Name | Data Type | Description |
action | string | "modal.create" - creates or opens a modal box. |
modal_location | Object | The relative path of the HTML file that has to be invoked. Example: {"url":"/app/choosefiles.html"}; |
A widget ID and a string constant are generated as the output.
Closes an iframe instance of the extension that was already opened in the specified location.
zohobugtracker.invoke("modal.close",modalInfo.widgetID);
Argument Name | Data Type | Description |
action | string | "modal.close" - closes the opened modal box. |
widgetID | Object | The widgetID generated as the output for "modal.create" should be passed here. |
Resizes the iframe instance of the extension to the specified size.
zohobugtracker.invoke("modal.resize", resize_modal);
Argument Name | Data Type | Description |
action | string | "modal.resize" - increases the default size of a modal box. |
resize_modal | Object | The relative path of the HTML file that has to be invoked. Example:{"width" : 600,"height" : 400}; Min & Max allowed height 380px & 450 px. Min & Max allowed width 550px & 850 px. |
A widget ID and a string constant are generated as the output.
Displays
notifications related to the extension at the specified location. It is
currently supported only for Bug tabs.
zohobugtracker.invoke("showNotification", notification_details);
Argument Name | Data Type | Description |
action | string | "showNotification" |
notification_details | Object |
Example: {notificationData:"5"} The value mapped against this key will be displayed as a notification. |
Closes an iframe instance of the extension that was opened in the specified location to attach a file.
zohobugtracker.invoke("attachment_picker.close");
Creates an instance for a specific widget.
zohobugtracker.instance(widget_ID);
Argument Name | Data Type | Description |
ID | string | Widget ID generated from the invoke method. |
Throws data from the current location.
zohobugtracker.emit("KeyforMyListener", data);
Listens or receives data from the emit method.
zohobugtracker.on("KeyforMyListener", data);
var modal_location={"url":"/apps/file.html"};
zohobugtracker.invoke("modal.create",modal_location).then(function(modalInfo){
var modalInstance=zohobugtracker.instance(modalInfo.widgetID);
modalInstance.on("modal.opened", function(){ /* This code listens for the status 'modal.opened' from the child HTML - file.html */
var data = {org: "1234"};
modalInstance.emit("submit", data);
});/* This code throws a status 'submit' along with an object to the child HTML - file.html*/
modalInstance.on("submitted",function(data){
/*This code listens for a status with the key 'submitted' from the child HTML*/
zohobugtracker.invoke("modal.close", modalInfo.widgetID);
});
var filedetails = {"filename": "abc"};
zohobugtracker.on("submit", function (data) {});
/*This code listens for an event with the key "submit" from the parent file index.html */
zohobugtracker.emit("submitted", filedetails);
/* This code throws a status 'submitted' along with an object to the parent file index.html */
Set and display success or failure alerts.
zohobugtracker.invoke("alert", {
type: "success", //or "failure"
data: "Permission granted successfully"
});
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.