Add helper to getFilteredRowIndices
This commit is contained in:
parent
5b8be4c5b0
commit
b2d26e987b
6
dist/frappe-datatable.cjs.js
vendored
6
dist/frappe-datatable.cjs.js
vendored
@ -1264,12 +1264,18 @@ class DataManager {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._filteredRows = rowsToShow;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
rowsToHide,
|
rowsToHide,
|
||||||
rowsToShow
|
rowsToShow
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getFilteredRowIndices() {
|
||||||
|
return this._filteredRows || [];
|
||||||
|
}
|
||||||
|
|
||||||
getRowCount() {
|
getRowCount() {
|
||||||
return this.rowCount;
|
return this.rowCount;
|
||||||
}
|
}
|
||||||
|
|||||||
6
dist/frappe-datatable.js
vendored
6
dist/frappe-datatable.js
vendored
@ -1263,12 +1263,18 @@ class DataManager {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._filteredRows = rowsToShow;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
rowsToHide,
|
rowsToHide,
|
||||||
rowsToShow
|
rowsToShow
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getFilteredRowIndices() {
|
||||||
|
return this._filteredRows || [];
|
||||||
|
}
|
||||||
|
|
||||||
getRowCount() {
|
getRowCount() {
|
||||||
return this.rowCount;
|
return this.rowCount;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1263,12 +1263,18 @@ class DataManager {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._filteredRows = rowsToShow;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
rowsToHide,
|
rowsToHide,
|
||||||
rowsToShow
|
rowsToShow
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getFilteredRowIndices() {
|
||||||
|
return this._filteredRows || [];
|
||||||
|
}
|
||||||
|
|
||||||
getRowCount() {
|
getRowCount() {
|
||||||
return this.rowCount;
|
return this.rowCount;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -417,12 +417,18 @@ export default class DataManager {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._filteredRows = rowsToShow;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
rowsToHide,
|
rowsToHide,
|
||||||
rowsToShow
|
rowsToShow
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getFilteredRowIndices() {
|
||||||
|
return this._filteredRows || [];
|
||||||
|
}
|
||||||
|
|
||||||
getRowCount() {
|
getRowCount() {
|
||||||
return this.rowCount;
|
return this.rowCount;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user