diff --git a/_docs/master/embedding/sdk/api/BaseSdkQuestionProps.html b/_docs/master/embedding/sdk/api/BaseSdkQuestionProps.html deleted file mode 100644 index eb917617bd..0000000000 --- a/_docs/master/embedding/sdk/api/BaseSdkQuestionProps.html +++ /dev/null @@ -1,43 +0,0 @@ ---- -version: master -has_magic_breadcrumbs: true -show_category_breadcrumb: true -show_title_breadcrumb: true -category: Embedding -title: BaseSdkQuestionProps -source_url: 'https://github.com/metabase/metabase/blob/master/docs/embedding/sdk/api/BaseSdkQuestionProps.html' -layout: docs-api ---- - -
Optional
childrenOptional
entityAn array that specifies which entity types are available in the data picker
-Optional
initialInitial values for the SQL parameters.
-Optional
isWhether to show the save button.
-Optional
onA callback function that triggers before saving. Only relevant when isSaveEnabled = true
Optional
onA callback function that triggers when a question is updated, including when a user clicks the Visualize
button in the question editor
Optional
onA callback function that triggers when a user saves the question. Only relevant when isSaveEnabled = true
Optional
pluginsThe ID of the question.
-
-This is either:
-
http://localhost:3000/question/1-my-question
where the ID is 1
-entity_id
key of the question object. You can find a question's Entity ID in the info panel when viewing a question
-new
to show the notebook editor for creating new questions. isSaveEnabled
must be true
to allow saving the questionOptional
targetThe collection to save the question to. This will hide the collection picker from the save modal. Only applicable to interactive questions.
-Optional
withEnables the ability to download results in the interactive question.
-A component that allows you to browse collections and their items.
+A component that allows you to browse collections and their items.
Optional
className?: stringA custom class name to be added to the root element.
Optional
collectionId?: SdkCollectionIdThe numerical ID of the collection, "personal" for the user's personal collection, or "root" for the root collection. You can find this ID in the URL when accessing a collection in your Metabase instance. For example, the collection ID in http://localhost:3000/collection/1-my-collection
would be 1
. Defaults to "personal"
Optional
EmptyContentComponent?: null | ComponentTypeA component to display when there are no items in the collection.
@@ -17,5 +17,5 @@Optional
pageSize?: numberThe number of items to display per page. The default is 25.
Optional
style?: CSSPropertiesA custom style object to be added to the root element.
Optional
visibleColumns?: CollectionBrowserListColumns[]The columns to display in the collection items table. If not provided, all columns will be shown.
-Optional
visibleEntityTypes?: ("model" | "question" | "collection" | "dashboard")[]The types of entities that should be visible. If not provided, all entities will be shown.
-Optional
visibleEntityTypes?: ("collection" | "dashboard" | "question" | "model")[]The types of entities that should be visible. If not provided, all entities will be shown.
+Optional
pageThe number of items to display per page. The default is 25.
Optional
styleA custom style object to be added to the root element.
Optional
visibleThe columns to display in the collection items table. If not provided, all columns will be shown.
-Optional
visibleThe types of entities that should be visible. If not provided, all entities will be shown.
+Optional
visibleThe types of entities that should be visible. If not provided, all entities will be shown.
Creates a dashboard
+Creates a dashboard
Optional
initialCollectionId?: SdkCollectionIdInitial collection in which to create a dashboard. You can use predefined system values like root
or personal
.
Optional
isOpen?: booleanWhether the modal is open or not.
Optional
onClose?: () => voidHandler to close modal component
Handler to react on dashboard creation.
-Optional
props: CreateQuestionPropsOptional
className?: stringA custom class name to be added to the root element.
+Optional
className?: stringA custom class name to be added to the root element.
Optional
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
@@ -26,5 +26,5 @@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 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.
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.
Optional
className?: stringA custom class name to be added to the root element.
The ID of the dashboard.
@@ -46,4 +46,4 @@
Optional
withCardTitle?: booleanWhether the dashboard cards should display a title.
Optional
withDownloads?: booleanWhether to hide the download button.
Optional
withTitle?: booleanWhether the dashboard should display a title.
-A dashboard component with drill downs, click behaviors, and the ability to view and click into questions.
+A dashboard component with drill downs, click behaviors, and the ability to view and click into questions.
Optional
drillThroughQuestionHeight?: Height<string | number>Height of a question component when drilled from the dashboard to a question level.
Optional
drillThroughQuestionProps?: DrillThroughQuestionPropsProps of a question component when drilled from the dashboard to a question level.
Optional
plugins?: MetabasePluginsConfigAdditional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.
@@ -46,4 +46,4 @@Optional
onLoad?: (dashboard: null | MetabaseDashboard) => voidCallback that is called when the dashboard is loaded.
Optional
onLoadWithoutCards?: (dashboard: null | MetabaseDashboard) => voidCallback that is called when the dashboard is loaded without cards.
Optional
dataPickerProps?: Pick<SdkQuestionProps, "entityTypes">Additional props to pass to the query builder rendered by InteractiveQuestion
when creating a new dashboard question.
A question component with drill-downs enabled.
-Optional
className?: stringA custom class name to be added to the root element.
+A component that renders an interactive question.
+Optional
className?: stringA custom class name to be added to the root element.
Optional
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
@@ -27,7 +27,7 @@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.
-Function
A navigation button that returns to the previous view. +Only visible when rendered within the InteractiveDashboardProps.renderDrillThroughQuestion prop.
+Function
Dropdown button for the Breakout component.
+Function
Detailed chart type selection interface with recommended visualization options.
+Function
Provides a UI widget for downloading data in different formats (CSV
, XLSX
, JSON
, and PNG
depending on the visualization).
Function
Provides a button that contains a dropdown that shows the DownloadWidget
.
Function
Advanced query editor that provides full access to question configuration. +Includes filtering, aggregation, custom expressions, and joins.
+Optional
hasVisualizeButton?: booleanOptional
onApply?: () => voidCallback function executed when changes are applied
+Function
Toggle button for showing/hiding the Editor interface.
+In custom layouts, the EditorButton
must have an InteractiveQuestionEditorButtonProps.onClick` handler or the button won't do anything when clicked.
Optional
isOpen?: booleanWhether the editor is currently open
+Optional
onClick?: MouseEventHandler<HTMLButtonElement>Callback function to be called when the button is clicked
+Function
A set of interactive filter badges that allow adding, editing, and removing filters. +Displays current filters as badges with an "Add another filter" option.
+Optional
withColumnItemIcon?: booleanWhether to show the icon for the column item
+Function
A dropdown button for the Filter component.
+Optional
withColumnItemIcon?: booleanWhether to show the icon for the column item
+Function
Advanced query editor that provides full access to question configuration. +Includes filtering, aggregation, custom expressions, and joins.
+Optional
hasVisualizeButton?: booleanOptional
onApply?: () => voidCallback function executed when changes are applied
+Function
Toggle button for showing/hiding the Editor interface.
+In custom layouts, the EditorButton
must have an InteractiveQuestionEditorButtonProps.onClick` handler or the button won't do anything when clicked.
Optional
isOpen?: booleanWhether the editor is currently open
+Optional
onClick?: MouseEventHandler<HTMLButtonElement>Callback function to be called when the button is clicked
+Function
Settings panel for configuring visualization options like axes, colors, and formatting. +Uses question context for settings.
+Function
Dropdown button that contains the QuestionSettings component.
+Optional
props: InteractiveQuestionQuestionSettingsDropdownPropsOptional
height?: Height<string | number>Height for the dropdown menu
+Function
The main visualization component that renders the question results as a chart, table, or other visualization type.
+Optional
className?: stringA custom class name to be added to the root element.
+Optional
style?: CSSPropertiesA custom style object to be added to the root element.
+Optional
height?: Height<string | number>A number or string specifying a CSS size value that specifies the height of the component
+Optional
width?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
+Function
Button to reset question modifications. Only appears when there are unsaved changes to the question.
+Optional
props: ButtonPropsFunction
Button for saving question changes. Only enabled when there are unsaved modifications to the question.
+Note: Currently, in custom layouts, the SaveButton
must have an onClick
handler or the button will not do anything when clicked.
Optional
props: InteractiveQuestionSaveButtonPropsOptional
onClick?: MouseEventHandler<HTMLButtonElement>A handler function to be called when the button is clicked
+Function
Form for saving a question, including title and description. When saved:
+Optional
onCancel?: () => voidCallback function executed when save is cancelled
+Function
Dropdown button for the Summarize component.
+Function
Displays a title based on the question's state. Shows:
+Optional
className?: stringA custom class name to be added to the root element.
+Optional
style?: CSSPropertiesA custom style object to be added to the root element.
+Defines how to authenticate with Metabase.
The children of the MetabaseProvider component.
Optional
className?: stringA custom class name to be added to the root element.
-Optional
errorComponent?: SdkErrorComponentA custom error component to display when the SDK encounters an error.
+Optional
errorComponent?: SdkErrorComponentA custom error component to display when the SDK encounters an error.
Optional
eventHandlers?: SdkEventHandlersConfigOptional
loaderComponent?: () => ElementA custom loader component to display while the SDK is loading.
Optional
locale?: stringDefines the display language. Accepts an ISO language code such as en
or de
.
diff --git a/_docs/master/embedding/sdk/api/MetabaseProviderProps.html b/_docs/master/embedding/sdk/api/MetabaseProviderProps.html
index c06935f30b..1624bbab66 100644
--- a/_docs/master/embedding/sdk/api/MetabaseProviderProps.html
+++ b/_docs/master/embedding/sdk/api/MetabaseProviderProps.html
@@ -9,10 +9,10 @@
layout: docs-api
---
-
Optional
allowWhether to allow logging to the DevTools console. Defaults to true.
Defines how to authenticate with Metabase.
The children of the MetabaseProvider component.
-Optional
classA custom class name to be added to the root element.
-Optional
errorA custom error component to display when the SDK encounters an error.
+Optional
classA custom class name to be added to the root element.
+Optional
errorA custom error component to display when the SDK encounters an error.
Optional
eventOptional
loaderA custom loader component to display while the SDK is loading.
Optional
localeDefines the display language. Accepts an ISO language code such as en
or de
.
diff --git a/_docs/master/embedding/sdk/api/MetabotQuestion.html b/_docs/master/embedding/sdk/api/MetabotQuestion.html
new file mode 100644
index 0000000000..eec53a55b2
--- /dev/null
+++ b/_docs/master/embedding/sdk/api/MetabotQuestion.html
@@ -0,0 +1,13 @@
+---
+version: master
+has_magic_breadcrumbs: true
+show_category_breadcrumb: true
+show_title_breadcrumb: true
+category: Embedding
+title: MetabotQuestion
+source_url: 'https://github.com/metabase/metabase/blob/master/docs/embedding/sdk/api/MetabotQuestion.html'
+layout: docs-api
+---
+
+
A lightweight dashboard component.
+A lightweight dashboard component.
Optional
drillThroughQuestionHeight?: Height<string | number>Height of a question component when drilled from the dashboard to a question level.
Optional
drillThroughQuestionProps?: DrillThroughQuestionPropsProps of a question component when drilled from the dashboard to a question level.
Optional
plugins?: MetabasePluginsConfigAdditional mapper function to override or add drill-down menu. See the implementing custom actions section for more details.
@@ -46,4 +46,4 @@Optional
onLoad?: (dashboard: null | MetabaseDashboard) => voidCallback that is called when the dashboard is loaded.
Optional
onLoadWithoutCards?: (dashboard: null | MetabaseDashboard) => voidCallback that is called when the dashboard is loaded without cards.
Optional
dataPickerProps?: Pick<SdkQuestionProps, "entityTypes">Additional props to pass to the query builder rendered by InteractiveQuestion
when creating a new dashboard question.
A question component without drill-downs.
-Optional
className?: stringA custom class name to be added to the root element.
+A component that renders a static question.
+Optional
className?: stringA custom class name to be added to the root element.
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
style?: CSSPropertiesA custom style object to be added to the root element.
@@ -18,7 +18,7 @@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.
-Function
Dropdown button for the Breakout component.
+Function
Detailed chart type selection interface with recommended visualization options.
+Function
Provides a UI widget for downloading data in different formats (CSV
, XLSX
, JSON
, and PNG
depending on the visualization).
Function
Provides a button that contains a dropdown that shows the DownloadWidget
.
Function
A set of interactive filter badges that allow adding, editing, and removing filters. +Displays current filters as badges with an "Add another filter" option.
+Optional
withColumnItemIcon?: booleanWhether to show the icon for the column item
+Function
A dropdown button for the Filter component.
+Optional
withColumnItemIcon?: booleanWhether to show the icon for the column item
+Function
Settings panel for configuring visualization options like axes, colors, and formatting. +Uses question context for settings.
+Function
Dropdown button that contains the QuestionSettings component.
+Optional
props: InteractiveQuestionQuestionSettingsDropdownPropsOptional
height?: Height<string | number>Height for the dropdown menu
+Function
The main visualization component that renders the question results as a chart, table, or other visualization type.
+Optional
className?: stringA custom class name to be added to the root element.
+Optional
style?: CSSPropertiesA custom style object to be added to the root element.
+Optional
height?: Height<string | number>A number or string specifying a CSS size value that specifies the height of the component
+Optional
width?: Width<string | number>A number or string specifying a CSS size value that specifies the width of the component
+Function
Button to reset question modifications. Only appears when there are unsaved changes to the question.
+Optional
props: ButtonPropsFunction
Dropdown button for the Summarize component.
+Function
Displays a title based on the question's state. Shows:
+Optional
className?: stringA custom class name to be added to the root element.
+Optional
style?: CSSPropertiesA custom style object to be added to the root element.
+Creates a dashboard
-Creates a dashboard.
+Returns null
until the SDK is fully loaded and initialized.
Returns the current user.
+Returns null
until the SDK is fully loaded and initialized.
Returns the authentication status of the current user in the Metabase embedding SDK.
+Returns null
until the SDK is fully loaded and initialized.
The children of the MetabaseProvider component.s
-