This commit is contained in:
2020-09-01 15:43:05 +00:00
parent d646306958
commit 1effb6ccb2
4 changed files with 64 additions and 9 deletions

View File

@@ -456,6 +456,20 @@ export default {
refresh() {
this.getDataFromApi();
},
getRowIds() {
//get selected row id's if there are selections else get all row id's
//called into from parent for things like reporting or bulk ops
if (this.selected.length > 0) {
//return row id's of selected items only
}
if (this.records.length > 0) {
//return row id's of all items
}
//no data, just return an empty array
return [];
// console.log("records:", this.records);
// console.log("selected:", this.selected);
},
handleSelectChange() {
//due to making own template for items need to handle singleselect which only affects if select all checkbox at top is visible when making own item template
if (this.singleSelect) {