Easily restore your project to a previous version with our new Instant One-click Backup Recovery

Hygraph
Docs

OpenDialog

OpenDialog(src, props)
Opens a separate dialog where you can load data from an external source or create your own UI.

Parameters

  • src
    type string
    The URL where the dialog contents are located.

  • props

    • disableOverlayClick
      type boolean
      State of the overlay click
      If true, the dialog doesn't close when clicking outside of the dialog area
    • maxWidth
      type string
      The maximum width of the dialog
    • ariaLabel
      type string
      Accesibility. ariaLabel can be used in cases where text that could label the element is not visible

Returns

Promise<DialogReturn | null>