Embedded analytics SDK API
    Preparing search index...

    Function EditableDashboard

    • A dashboard component with the features available in the InteractiveDashboard component, as well as the ability to add and update questions, layout, and content within your dashboard.

      Parameters

      • props: EditableDashboardProps
        • OptionalclassName?: string

          A custom class name to be added to the root element.

        • dashboardId: SdkDashboardId

          The ID of the dashboard.
          This is either:

          • the numerical ID when accessing a dashboard link, i.e. http://localhost:3000/dashboard/1-my-dashboard where the ID is 1
          • the string ID found in the entity_id key of the dashboard object when using the API directly or using the SDK Collection Browser to return data
        • OptionaldrillThroughQuestionHeight?: number

          Height of a question component when drilled from the dashboard to a question level.

        • OptionaldrillThroughQuestionProps?: DrillThroughQuestionProps

          Props for the drill-through question

        • OptionalinitialParameters?: DefaultQuery<string>

          Query parameters for the dashboard. For a single option, use a string value, and use a list of strings for multiple options.


          - Combining initialParameters and hiddenParameters to filter data on the frontend is a [security risk](/docs/master/embedding/sdk/authentication#security-warning-each-end-user-must-have-their-own-metabase-account).
          - Combining initialParameters and hiddenParameters to declutter the user interface is fine.
        • OptionalonLoad?: (dashboard: null | MetabaseDashboard) => void

          Callback that is called when the dashboard is loaded.

        • OptionalonLoadWithoutCards?: (dashboard: null | MetabaseDashboard) => void

          Callback that is called when the dashboard is loaded without cards.

        • Optionalplugins?: MetabasePluginsConfig

          Additional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.

        • Optionalstyle?: CSSProperties

          A custom style object to be added to the root element.

        • OptionalwithCardTitle?: boolean

          Whether the dashboard cards should display a title.

        • OptionalwithDownloads?: boolean

          Whether to hide the download button.

        • OptionalwithFooter?: boolean

          Whether to display the footer.

      Returns Element