Optional
classA 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 dataOptional
drillHeight of a question component when drilled from the dashboard to a question level.
Optional
drillProps for the drill-through question
Props for the drill-through question
Optional
children?: ReactNodeThe children of the MetabaseProvider component.s
Optional
className?: stringA custom class name to be added to the root element.
Optional
entityTypeFilter?: EntityTypeFilterKeys[]An array that specifies which entity types are available in the data picker
Optional
height?: Height<string | number>A number or string specifying a CSS size value that specifies the height of the component
Optional
initialSqlParameters?: SqlParameterValuesInitial values for the SQL parameters.
Optional
isSaveEnabled?: booleanWhether to show the save button.
Optional
onBeforeSave?: (A callback function that triggers before saving. Only relevant when isSaveEnabled = true
Optional
onSave?: (A callback function that triggers when a user saves the question. Only relevant when isSaveEnabled = true
Optional
plugins?: MetabasePluginsConfigOptional
style?: CSSPropertiesA custom style object to be added to the root element.
Optional
targetCollection?: SdkCollectionIdThe collection to save the question to. This will hide the collection picker from the save modal. Only applicable to interactive questions.
Optional
title?: 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.
Optional
width?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
Optional
withChartTypeSelector?: booleanDetermines whether the chart type selector and corresponding settings button are shown. Only relevant when using the default layout.
Optional
withDownloads?: booleanEnables the ability to download results in the interactive question.
Optional
withResetButton?: booleanDetermines whether a reset button is displayed. Only relevant when using the default layout.
Optional
initialQuery parameters for the dashboard. For a single option, use a string
value, and use a list of strings for multiple options.
Optional
onCallback that is called when the dashboard is loaded.
Optional
onCallback that is called when the dashboard is loaded without cards.
Optional
pluginsAdditional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.
Optional
styleA custom style object to be added to the root element.
Optional
withWhether the dashboard cards should display a title.
Optional
withWhether to hide the download button.
Optional
withWhether to display the footer.