# csvImport

Provides a CSV import button and column mapping flow. Explain whether importing replaces existing columns and data.

Canonical: https://grid.syidax.com/docs/options/csvImport/

<a id="meaning"></a>

## What does this API do?

Provides a CSV import button and column mapping flow. Explain whether importing replaces existing columns and data.

<a id="contract"></a>

## Exact input and result types

```typescript
csvImport: boolean
```

| Item | Value |
| --- | --- |
| JavaScript name | csvImport |
| HTML attribute | csv-import |
| Default | false |
| Input type | boolean |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the csv-import attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="recipes"></a>

## Feature explanations and examples

- [Import CSV](https://grid.syidax.com/docs/features/csv-import.md) — CSV import converts delimited text into new columns and rows. Unlike a transaction that appends rows, importCsvText replaces columnDefs and rowData.
