Embedded analytics SDK API
    Preparing search index...

    Function StaticQuestion

    • A component that renders a static question.

      Parameters

      • props: StaticQuestionProps
        • OptionalclassName?: string

          A custom class name to be added to the root element.

        • Optionalheight?: Height<string | number>

          A number or string specifying a CSS size value that specifies the height of the component

        • OptionalinitialSqlParameters?: ParameterValues

          Initial values for the SQL parameters.

        • questionId: null | SdkQuestionId

          The ID of the question. This is either:

          • The numerical ID when accessing a question link, e.g., http://localhost:3000/question/1-my-question where the ID is 1
          • The 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 question
        • Optionalstyle?: CSSProperties

          A custom style object to be added to the root element.

        • Optionalwidth?: Width<string | number>

          A number or string specifying a CSS size value that specifies the width of the component

        • OptionalwithChartTypeSelector?: boolean

      Returns ReactNode