OptionalclassOptionalheightA number or string specifying a CSS size value that specifies the height of the component
OptionalhiddenA list of parameters to hide.
OptionalinitialInitial values for SQL parameters, slug-keyed. Applied once on mount; user widget edits afterwards are not reflected back to the host.
For each parameter:
null: strictly cleared, ignoring the parameter's default.
undefined): falls back to the parameter's default (or null if it has no default).OptionalonFires on SQL parameters change. The payload's source distinguishes the initial state on load ('initial-state'), user edits in the UI ('manual-change'), and auto-updates ('auto-change').
OptionalqueryOptionalquestionThe 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 when using the API directly or using the SDK Collection Browser to return data
new to show the notebook editor for creating new questions
new-native to show the SQL editor for creating new native questionsOptionalsqlControlled SQL parameter values, slug-keyed. On every render, this object replaces the question's parameter values:
null is cleared, even if it has a default.
undefined) uses its default (or null if it has no default).
onSqlParametersChange to stay in sync with user edits.OptionalstyleA custom style object to be added to the root element.
OptionaltitleDetermines whether the question title is displayed, and allows a custom title to be displayed instead of the default question title. Shown by default.
OptionaltokenA valid JWT token for the guest embed.
OptionalwidthA number or string specifying a CSS size value that specifies the width of the component
OptionalwithEnables the ability to set up alerts on the question.
OptionalwithDetermines whether the chart type selector and corresponding settings button are shown. Only relevant when using the default layout.
OptionalwithEnables the ability to download results in the question.
A custom class name to be added to the root element.