Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docs to be more succint and add versioning
Browse files Browse the repository at this point in the history
theLAZYmd committed Nov 4, 2021
1 parent 417982c commit ac6f191
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/docs.html
Original file line number Diff line number Diff line change
@@ -510,12 +510,16 @@ <h5 id="config-details">Config Options</h5>
<code>transformHeader</code>
</td>
<td>
A function to apply on each header. Requires <code>header</code> to be <code>true</code>. The function receives the header as its first argument and the index (the column number) as second. When used in conjunction with config.headerLines, the function receives a third and fourth parameter which are:
A function to apply on each header. Requires <code>header</code> to be <code>true</code>. The arguments are:
<ul>
<li><b>header:</b> the current header text, as parsed from the appropriate cell in the specified header row</li>
<li><b>index:</b> the column number of the header text (0 for first column)</li>
<li><b>arr:</b> the string array of data for that row</li>
<li><b>acc:</b> the existing header for that column based on previous lines iteration ('' if no previous lines)</li>
<li><b>j:</b> the rowNumber (0 for the first line)</li>
</ul>
Only available starting with version 5.0.
The latter three parameters (arr, acc, j) are only available when used in conjunction with config.headerLines and from version 5.4+.
</td>
</tr>
<tr>
@@ -524,6 +528,7 @@ <h5 id="config-details">Config Options</h5>
</td>
<td>
The number of rows which will be used to transform into a header, and removed from the rest of the data. Requires header to be true. Default 1.
Only available starting with veresion 5.4.
</td>
</tr>
<tr>

0 comments on commit ac6f191

Please sign in to comment.