TreeINFO-For-M365 documentation
    Preparing search index...

    Module Common/CustomScript/Utils/AddDialog

    Function for adding dialog.

    const config = {
    Title: "Dialog Title",
    Template: [
    { InternalName: "name", Title: "Name", Type: "Text" },
    {
    InternalName: "approver",
    Title: "Approver",
    Type: "User",
    User: { PrincipalSource: "AllUsers", PrincipalType: "User" }
    },
    {
    InternalName: "participants",
    Title: "Participants",
    Type: "UserMulti",
    User: { PrincipalSource: "AllUsers", PrincipalType: "All" }
    }
    ]
    };

    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);

    Interfaces

    DialogButton
    DialogConfig
    DialogFormField
    DialogResult

    Type Aliases

    AddDialogType
    OnDialogButtonClicked
    TypeAsString