@grafana/ui
Version:
Grafana Components Library
27 lines (26 loc) • 725 B
TypeScript
import { PureComponent } from 'react';
import { VizOrientation } from '../../types';
interface Props<T> {
renderValue: (value: T, width: number, height: number) => JSX.Element;
height: number;
width: number;
source: any;
getValues: () => T[];
renderCounter: number;
orientation: VizOrientation;
itemSpacing?: number;
}
interface DefaultProps {
itemSpacing: number;
}
interface State<T> {
values: T[];
}
export declare class VizRepeater<T> extends PureComponent<Props<T>, State<T>> {
static defaultProps: DefaultProps;
constructor(props: Props<T>);
componentDidUpdate(prevProps: Props<T>): void;
getOrientation(): VizOrientation;
render(): JSX.Element;
}
export {};