mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 03:06:54 +00:00
emit event when rows are marked - useful for other components using telemetry tables
This commit is contained in:
parent
fbbdf8cff7
commit
8125a4f321
@ -346,6 +346,13 @@ export default {
|
|||||||
return style;
|
return style;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
markedRows: {
|
||||||
|
handler(newVal, oldVal) {
|
||||||
|
this.$emit('marked-rows-updated', newVal, oldVal);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.filterChanged = _.debounce(this.filterChanged, 500);
|
this.filterChanged = _.debounce(this.filterChanged, 500);
|
||||||
},
|
},
|
||||||
@ -779,6 +786,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkForMarkedRows() {
|
checkForMarkedRows() {
|
||||||
|
this.isShowingMarkedRowsOnly = false;
|
||||||
this.markedRows = this.table.filteredRows.getRows().filter(row => row.marked);
|
this.markedRows = this.table.filteredRows.getRows().filter(row => row.marked);
|
||||||
},
|
},
|
||||||
showRows(rows) {
|
showRows(rows) {
|
||||||
|
Loading…
Reference in New Issue
Block a user