--- title: CreateDashboardModal layout: docs-api redirect_from: - /docs/latest/embedding/api/CreateDashboardModal --- CreateDashboardModal | Embedded analytics SDK API{% include docs/embedded-analytics-sdk-metadata.html %}
Embedded analytics SDK API
    Preparing search index...

    Function CreateDashboardModal

    • Creates a dashboard

      Parameters

      • props: CreateDashboardModalProps
        • OptionalinitialCollectionId?: SdkCollectionId

          Initial collection in which to create a dashboard. You can use predefined system values like root or personal.

        • OptionalisOpen?: boolean

          Whether the modal is open or not.

        • OptionalonClose?: () => void

          Handler to close modal component

        • onCreate: (dashboard: MetabaseDashboard) => void

          Handler to react on dashboard creation.

        • OptionaltargetCollection?: SdkCollectionId

          The collection to save the dashboard to. This will hide the collection picker from the save modal.

      Returns Element