Update columns from ColumnEditor
This commit is contained in:
parent
084ee76b3f
commit
d23293cd8b
|
@ -106,11 +106,12 @@
|
||||||
/>
|
/>
|
||||||
<Label small>Export columns</Label>
|
<Label small>Export columns</Label>
|
||||||
<ColumnEditor
|
<ColumnEditor
|
||||||
bind:value={parameters.columns}
|
value={parameters.columns}
|
||||||
allowCellEditing={false}
|
allowCellEditing={false}
|
||||||
componentInstance={selectedTable}
|
componentInstance={selectedTable}
|
||||||
on:change={e => {
|
on:change={e => {
|
||||||
const columns = e.detail
|
const columns = e.detail
|
||||||
|
parameters.columns = columns
|
||||||
parameters.customHeaders = columns.reduce((headerMap, column) => {
|
parameters.customHeaders = columns.reduce((headerMap, column) => {
|
||||||
return {
|
return {
|
||||||
[column.name]: column.displayName,
|
[column.name]: column.displayName,
|
||||||
|
|
Loading…
Reference in New Issue