grafana/docs/sources/packages_api/data/csvreader.md
Marcus Andersson cc3fc18076
Docs: enable packages reference docs for 7-beta (#23953)
* added packages reference menu item.

* removed the draft flag.

* Updated docs by running script.
2020-04-28 09:53:58 +02:00

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[]