DialogV2ButtonCallback: ((event, button, dialog) => Promise<any>)

Type declaration

    • (event, button, dialog): Promise<any>
    • Parameters

      • event: PointerEvent | SubmitEvent

        The button click event, or a form submission event if the dialog was submitted via keyboard.

      • button: HTMLButtonElement

        If the form was submitted via keyboard, this will be the default button, otherwise the button that was clicked.

      • dialog: HTMLDialogElement

        The dialog element.

      Returns Promise<any>