嵌入式分析 SDK API
    正在准备搜索索引...

    接口 DrillThroughQuestionProps

    钻取问题的属性

    interface DrillThroughQuestionProps {
        children?: ReactNode;
        className?: string;
        entityTypes?: EmbeddingEntityType[];
        height?: Height<string | number>;
        initialSqlParameters?: SqlParameterValues;
        isSaveEnabled?: boolean;
        onBeforeSave?: (
            question: undefined | MetabaseQuestion,
            context: { isNewQuestion: boolean },
        ) => Promise<void>;
        onRun?: (question: undefined | MetabaseQuestion) => void;
        onSave?: (
            question: undefined | MetabaseQuestion,
            context: { isNewQuestion: boolean },
        ) => void;
        plugins?: MetabasePluginsConfig;
        style?: CSSProperties;
        targetCollection?: SdkCollectionId;
        title?: SdkQuestionTitleProps;
        width?: Width<string | number>;
        withChartTypeSelector?: boolean;
        withDownloads?: boolean;
        withResetButton?: boolean;
    }
    索引

    属性

    children?: ReactNode

    MetabaseProvider 组件的子元素。

    className?: string

    要添加到根元素的自定义类名。

    entityTypes?: EmbeddingEntityType[]

    一个数组,用于指定数据选择器中可用的实体类型

    height?: Height<string | number>

    指定组件高度的数字或字符串形式的 CSS 大小值

    initialSqlParameters?: SqlParameterValues

    SQL 参数的初始值。

    isSaveEnabled?: boolean

    是否显示保存按钮。

    onBeforeSave?: (
        question: undefined | MetabaseQuestion,
        context: { isNewQuestion: boolean },
    ) => Promise<void>

    一个在保存前触发的回调函数。仅当 isSaveEnabled = true 时有效

    onRun?: (question: undefined | MetabaseQuestion) => void

    当问题更新时(包括用户点击问题编辑器中的 Visualize 按钮时)触发的回调函数

    onSave?: (
        question: undefined | MetabaseQuestion,
        context: { isNewQuestion: boolean },
    ) => void

    用户保存问题时触发的回调函数。仅当 isSaveEnabled = true 时有效

    要添加到根元素的自定义样式对象。

    targetCollection?: SdkCollectionId

    保存问题到的集合。这将从保存模式中隐藏集合选择器。仅适用于交互式问题。

    确定是否显示问题标题,并允许显示自定义标题而不是默认问题标题。默认显示。仅适用于使用默认布局的交互式问题。

    width?: Width<string | number>

    指定组件宽度的数字或字符串形式的 CSS 大小值

    withChartTypeSelector?: boolean

    确定是否显示图表类型选择器和相应的设置按钮。仅在使用默认布局时有效。

    withDownloads?: boolean

    启用在交互式问题中下载结果的功能。

    withResetButton?: boolean

    确定是否显示重置按钮。仅在使用默认布局时有效。

    © . All rights reserved.