+
Column {index + 1}
+
+ ({
+ label: col.columnName,
+ value: col.columnName,
+ }))}
+ />
+
+
+ {
+ const x = [...columns];
+ x.splice(index, 1);
+ columns = x;
+ }}
+ />
+
+
+
Add new column
+
+ {#key columns.length}
+ {
+ if (e.detail)
+ columns = [
+ ...columns,
+ {
+ columnName: e.detail,
+ },
+ ];
+ }}
+ isNative
+ options={[
+ {
+ label: 'Choose column',
+ value: '',
+ },
+ ...tableInfo.columns.map(col => ({
+ label: col.columnName,
+ value: col.columnName,
+ })),
+ ]}
+ />
+ {/key}
+
+