mirror of
https://github.com/apache/superset.git
synced 2024-09-19 03:59:49 -04:00
add ref type for superchart (#1411)
This commit is contained in:
parent
c44df76596
commit
4dc6443ac3
@ -1,4 +1,4 @@
|
|||||||
import React, { ReactNode } from 'react';
|
import React, { ReactNode, RefObject } from 'react';
|
||||||
import ErrorBoundary, { ErrorBoundaryProps, FallbackProps } from 'react-error-boundary';
|
import ErrorBoundary, { ErrorBoundaryProps, FallbackProps } from 'react-error-boundary';
|
||||||
import { ParentSize } from '@vx/responsive';
|
import { ParentSize } from '@vx/responsive';
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
@ -39,6 +39,8 @@ export type Props = Omit<SuperChartCoreProps, 'chartProps'> &
|
|||||||
onErrorBoundary?: ErrorBoundaryProps['onError'];
|
onErrorBoundary?: ErrorBoundaryProps['onError'];
|
||||||
/** Prop for form plugins uisng superchart */
|
/** Prop for form plugins uisng superchart */
|
||||||
showOverflow?: boolean;
|
showOverflow?: boolean;
|
||||||
|
/** Prop for popovercontainer ref */
|
||||||
|
parentRef?: RefObject<any>;
|
||||||
/** Chart width */
|
/** Chart width */
|
||||||
height?: number | string;
|
height?: number | string;
|
||||||
/** Chart height */
|
/** Chart height */
|
||||||
|
Loading…
Reference in New Issue
Block a user