|
@@ -327,24 +327,6 @@
|
|
|
<span>
|
|
|
{{ column.displayName }}
|
|
|
</span>
|
|
|
- <span
|
|
|
- v-if="column.pinable"
|
|
|
- content="Toggle Pinned Column"
|
|
|
- v-tippy
|
|
|
- @click="togglePinnedColumn(column)"
|
|
|
- >
|
|
|
- <span
|
|
|
- :class="{
|
|
|
- 'material-icons': true,
|
|
|
- active:
|
|
|
- pinnedColumns.indexOf(
|
|
|
- column.name
|
|
|
- ) !== -1
|
|
|
- }"
|
|
|
- >
|
|
|
- push_pin
|
|
|
- </span>
|
|
|
- </span>
|
|
|
<span
|
|
|
v-if="column.sortable"
|
|
|
:content="`Sort by ${column.displayName}`"
|
|
@@ -592,7 +574,6 @@ export default {
|
|
|
sort: {},
|
|
|
orderedColumns: [],
|
|
|
shownColumns: [],
|
|
|
- pinnedColumns: ["select"],
|
|
|
columnDragOptions() {
|
|
|
return {
|
|
|
animation: 200,
|
|
@@ -687,7 +668,6 @@ export default {
|
|
|
hidable: false,
|
|
|
draggable: false,
|
|
|
resizable: false,
|
|
|
- pinable: false,
|
|
|
minWidth: 47,
|
|
|
width: 47,
|
|
|
maxWidth: 47
|
|
@@ -773,16 +753,6 @@ export default {
|
|
|
}
|
|
|
return this.getData();
|
|
|
},
|
|
|
- togglePinnedColumn(column) {
|
|
|
- if (this.pinnedColumns.indexOf(column.name) !== -1) {
|
|
|
- this.pinnedColumns.splice(
|
|
|
- this.pinnedColumns.indexOf(column.name),
|
|
|
- 1
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.pinnedColumns.push(column.name);
|
|
|
- }
|
|
|
- },
|
|
|
toggleSelectedRow(itemIndex, event) {
|
|
|
const { shiftKey, ctrlKey } = event;
|
|
|
// Shift was pressed, so attempt to select all items between the clicked item and last clicked item
|