Function for adding dialog.
const config = { Title: "Dialog Title", Template: [ { InternalName: "name", Title: "Name", Type: "Text" } ]};const { button, data } = await tisa.utils.addDialog(config, async (button, data) => { return true; // true = close dialog, false = keep open});console.log(button, data); Copy
const config = { Title: "Dialog Title", Template: [ { InternalName: "name", Title: "Name", Type: "Text" } ]};const { button, data } = await tisa.utils.addDialog(config, async (button, data) => { return true; // true = close dialog, false = keep open});console.log(button, data);
const config = { Title: "Dialog Title", Template: [ { InternalName: "name", Title: "Name", Type: "Text" } ], Buttons: [ { Title: "Send", Name: "send", Type: "submit" }, { Title: "Send with Attachments", Name: "sendWithAttachments", Type: "submit" }, { Title: "Close", Name: "close", Type: "button" } ]};const { button, data } = await tisa.utils.addDialog(config, async (button, data) => { return true; // true = close dialog, false = keep open});console.log(button, data); Copy
const config = { Title: "Dialog Title", Template: [ { InternalName: "name", Title: "Name", Type: "Text" } ], Buttons: [ { Title: "Send", Name: "send", Type: "submit" }, { Title: "Send with Attachments", Name: "sendWithAttachments", Type: "submit" }, { Title: "Close", Name: "close", Type: "button" } ]};const { button, data } = await tisa.utils.addDialog(config, async (button, data) => { return true; // true = close dialog, false = keep open});console.log(button, data);
Function for adding dialog.
Example usage:
Example usage with custom buttons: