Class: CSVPreview

mcutils.control. CSVPreview

Create a preview for a CSV


new CSVPreview(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Argument Default Description
target Element
csv string
nbLines number <optional>
5
line boolean <optional>
false

display line number

Source:
control/CSVPreview.js

Extends

  • olObject

Methods


getResult()

Get the current result

Source:
control/CSVPreview.js
Returns:

parsed data

Type
*

setCSV(csv)

Set current CSV data

Parameters:
Name Type Description
csv string
Source:
control/CSVPreview.js

showData(papaOptions, papaOptions)

Show data according to papaparse options

Parameters:
Name Type Description
papaOptions Object
papaOptions Object | Array()
Source:
control/CSVPreview.js
Returns:

parsed data

Type
*