mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
2.2 KiB
2.2 KiB
+++
-----------------------------------------------------------------------
Do not edit this file. It is automatically generated by API Documenter.
-----------------------------------------------------------------------
title = "CSVReader" keywords = ["grafana","documentation","sdk","@grafana/data"] type = "docs" +++
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[]