@grafana/ui
Version:
Grafana Components Library
26 lines (25 loc) • 765 B
TypeScript
/// <reference types="lodash" />
import React from 'react';
import { DataFrame, CSVConfig } from '@grafana/data';
interface Props {
config?: CSVConfig;
text: string;
width: string | number;
height: string | number;
onSeriesParsed: (data: DataFrame[], text: string) => void;
}
interface State {
text: string;
data: DataFrame[];
}
/**
* Expects the container div to have size set and will fill it 100%
*/
export declare class TableInputCSV extends React.PureComponent<Props, State> {
constructor(props: Props);
readCSV: (() => void) & import("lodash").Cancelable;
componentDidUpdate(prevProps: Props, prevState: State): void;
onTextChange: (event: any) => void;
render(): JSX.Element;
}
export default TableInputCSV;