OptionalclassA custom class name to be added to the root element.
The ID of the dashboard.
This is either:
http://localhost:3000/dashboard/1-my-dashboard where the ID is 1
entity_id key of the dashboard object when using the API directly or using the SDK Collection Browser to return dataOptionaldataAdditional props to pass to the query builder rendered by InteractiveQuestion when creating a new dashboard question.
OptionaldrillHeight of a question component when drilled from the dashboard to a question level.
OptionaldrillProps of a question component when drilled from the dashboard to a question level.
Props for the drill-through question
Optionalchildren?: ReactNodeThe children of the MetabaseProvider component.s
OptionalclassName?: stringA custom class name to be added to the root element.
OptionalentityTypes?: EmbeddingEntityType[]An array that specifies which entity types are available in the data picker
Optionalheight?: Height<string | number>A number or string specifying a CSS size value that specifies the height of the component
OptionalinitialSqlParameters?: SqlParameterValuesInitial values for the SQL parameters.
OptionalisSaveEnabled?: booleanWhether to show the save button.
OptionalonBeforeSave?: (A callback function that triggers before saving. Only relevant when isSaveEnabled = true
OptionalonRun?: (question: undefined | MetabaseQuestion) => voidA callback function that triggers when a question is updated, including when a user clicks the Visualize button in the question editor
OptionalonSave?: (A callback function that triggers when a user saves the question. Only relevant when isSaveEnabled = true
Optionalplugins?: MetabasePluginsConfigOptionalstyle?: CSSPropertiesA custom style object to be added to the root element.
OptionaltargetCollection?: SdkCollectionIdThe collection to save the question to. This will hide the collection picker from the save modal. Only applicable to interactive questions.
Optionaltitle?: SdkQuestionTitlePropsDetermines whether the question title is displayed, and allows a custom title to be displayed instead of the default question title. Shown by default. Only applicable to interactive questions when using the default layout.
Optionalwidth?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
OptionalwithChartTypeSelector?: booleanDetermines whether the chart type selector and corresponding settings button are shown. Only relevant when using the default layout.
OptionalwithDownloads?: booleanEnables the ability to download results in the interactive question.
OptionalwithResetButton?: booleanDetermines whether a reset button is displayed. Only relevant when using the default layout.
OptionalhiddenA list of parameters to hide.
OptionalinitialQuery parameters for the dashboard. For a single option, use a string value, and use a list of strings for multiple options.
OptionalonCallback that is called when the dashboard is loaded.
OptionalonCallback that is called when the dashboard is loaded without cards.
OptionalonA callback function that triggers when a question is opened from a dashboard card or when the user changes the visualization type of a question.
the new visualization type
OptionalpluginsAdditional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.
OptionalrenderA custom React component to render the question layout. Use namespaced InteractiveQuestion components to build the layout.
OptionalstyleA custom style object to be added to the root element.
OptionalwithWhether the dashboard cards should display a title.
OptionalwithWhether to hide the download button.
OptionalwithWhether the dashboard should display a title.