UNPKG

@grafana/ui

Version:
39 lines (38 loc) 1.26 kB
import { PureComponent } from 'react'; import * as React from 'react'; import { DataFrame, CSVConfig } from '@grafana/data'; import { Themeable2 } from '../../types/theme'; interface Props extends Themeable2 { 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 UnThemedTableInputCSV extends PureComponent<Props, State> { constructor(props: Props); readCSV: import("lodash").DebouncedFunc<() => void>; componentDidUpdate(prevProps: Props, prevState: State): void; onTextChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void; render(): import("react/jsx-runtime").JSX.Element; } /** * @deprecated * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-deprecated-tableinputcsv--docs */ export declare const TableInputCSV: React.FunctionComponent<{ text: string; width: string | number; height: string | number; config?: CSVConfig | undefined; onSeriesParsed: (data: DataFrame[], text: string) => void; }>; export {};