CsvFileReader

Lore. CsvFileReader

A class representing a CSV file reader.

Constructor

new CsvFileReader(source, options, localopt)

Source:

Creates an instance of CsvFileReader.

Parameters:
Name Type Attributes Default Description
source String

The source of the file. This is either a input element (type=file) or a URL. If it is a URL, set local to true.

options any

Options. See documentation for details.

local boolean <optional>
true

A boolean indicating whether or not the source is local (a file input) or remote (a url).

Methods

loaded(data) → {Lore.CsvFileReader}

Source:

Called when the data is loaded, will raise the "loaded" event.

Parameters:
Name Type Description
data any

The data loaded from the file or url.

Returns:

Itself.

Type
Lore.CsvFileReader