Optional
props: CreateQuestionPropsOptional
className?: stringOptional
componentPlugins?: MetabasePluginsConfigAdditional mapper function to override or add drill-down menu
Optional
entityTypes?: EmbeddingEntityType[]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
onNavigateBack?: () => voidA callback function that triggers when a user clicks the back button.
Optional
onRun?: (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
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.
A custom class name to be added to the root element.