1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-08 00:42:28 +02:00

Updated 3.2 Column operations (markdown)

koalyptus 2017-03-25 18:02:25 +11:00
parent c4c1d8da52
commit ad7fc725b9

@ -111,6 +111,29 @@ var tfConfig = {
};</pre>
</td>
</tr>
<tr>
<th>format_result</th>
<td>array</td>
<td>list of format objects used for formatting operation results</td>
<td>
refer to https://github.com/componitable/format-number to check the configuration options.
By default, `ColOps` will match the current number format in terms of thousands and decimal
separators based on the column type, (`number` or `formatted-number`)
</td>
<td>
<pre>
var tfConfig = {
extensions: [{
name: 'colOps',
id: ['col2Total', 'col4Mean'],
col: [2, 4],
operation: ['sum', 'mean'],
write_method: ['innerHTML', 'setValue'],
format_result: [{ prefix: '$' }, { suffix: '/unit' }]
}]
};</pre>
</td>
</tr>
<tr>
<th>exclude_row</th>
<td>array</td>