Skip to content

Commit

Permalink
docs: update properties
Browse files Browse the repository at this point in the history
  • Loading branch information
coston committed Oct 2, 2024
1 parent 8cd6ca0 commit 02006d2
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ or load from a CDN:
Download Data
</button>
);
};
};
```




## Properties

```typescript
Expand All @@ -120,13 +117,12 @@ interface HeaderMapping {
}
```


| # | Property | Type | Requirement | Default | Description |
| - | --------- | -------------------------------- | ----------- | ------------------------- | ---------------------------------------------------------------------------------------- |
| 1 | data | [] | required | | array of objects |
| 2 | filename | string | optional | "export.csv" | The filename. The .csv extention will be added if not included in file name |
| 3 | delimiter | string | optional | "," | fields separator |
| 4 | headers | string[] OR<br />HeaderMapping[] | optional | provided data object keys | List of columns that will be used in the final CSV file. Recommended for large datasets! |
| # | Property | Type | Requirement | Default | Description |
| --- | --------- | ----------------------------- | ----------- | ------------ | --------------------------------------------------------------------------- |
| 1 | data | `Record<string, any>[]` | required | | array of objects |
| 2 | filename | `string` | optional | "export.csv" | The filename. The .csv extention will be added if not included in file name |
| 3 | delimiter | `string` | optional | "," | fields separator |
| 4 | headers | `string[]`, `HeaderMapping[]` | optional | | provided data object keys |

## Migration from version 1.x to 2.x

Expand Down

0 comments on commit 02006d2

Please sign in to comment.