DialogV2ButtonCallback: (
    event: PointerEvent | SubmitEvent,
    button: HTMLButtonElement,
    dialog: DialogV2,
) => Promise<any>

Type declaration

    • (
          event: PointerEvent | SubmitEvent,
          button: HTMLButtonElement,
          dialog: DialogV2,
      ): 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: DialogV2

        The DialogV2 instance.

      Returns Promise<any>