Skip to content

Commit

Permalink
allow parser options to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
jsDotCr committed Oct 3, 2018
1 parent c51f548 commit 51c8e93
Show file tree
Hide file tree
Showing 5 changed files with 5,181 additions and 15 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ ReactDOM.render(<App />, document.getElementById('root'))

### Parameters

| Name | Type | Default | Description |
| ------------ | --------------- | ----------- | --------------------------------------------------------------------- |
| cssClass | string | `csv-input` | A CSS class to be applied to the `<input>` element. |
| label | string, element | | If present, it will be rendered in a `<label>` to describe input aim. |
| onFileLoaded | function | | (**_required_**) The function to be called passing loaded results. |
| onError | function | | Error handling function. |
| inputId | string | | An id to be applied to the `<input>` element. |
| Name | Type | Default | Description |
| ------------- | --------------- | ----------- | --------------------------------------------------------------------- |
| cssClass | string | `csv-input` | A CSS class to be applied to the `<input>` element. |
| label | string, element | | If present, it will be rendered in a `<label>` to describe input aim. |
| onFileLoaded | function | | (**_required_**) The function to be called passing loaded results. |
| onError | function | | Error handling function. |
| parserOptions | object | `{}` | [PapaParse configuration](https://www.papaparse.com/docs#config) object override |
| inputId | string | | An id to be applied to the `<input>` element. |

### Results

Expand Down
8 changes: 4 additions & 4 deletions dist/react-csv-reader.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-csv-reader.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 51c8e93

Please sign in to comment.