CSVReader class
Signature
export declare class CSVReader
Import
import { CSVReader } from '@grafana/data';
Constructors
Constructor | Modifiers | Description |
---|---|---|
constructor(options) | Constructs a new instance of the CSVReader class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
callback | CSVParseCallbacks | ||
config | CSVConfig | ||
current | MutableDataFrame | ||
data | MutableDataFrame[] | ||
state | ParseState |
Methods
Method | Modifiers | Description |
---|---|---|
readCSV(text) |
constructor(options)
Constructs a new instance of the CSVReader
class
Signature
constructor(options?: CSVOptions);
Parameters
Parameter | Type | Description |
---|---|---|
options | CSVOptions |
callback property
Signature
callback?: CSVParseCallbacks;
config property
Signature
config: CSVConfig;
current property
Signature
current: MutableDataFrame;
data property
Signature
data: MutableDataFrame[];
state property
Signature
state: ParseState;
readCSV method
Signature
readCSV(text: string): MutableDataFrame[];
Parameters
Parameter | Type | Description |
---|---|---|
text | string |
Returns:
MutableDataFrame[]