trithuc-mvc-react 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -211,7 +211,10 @@ const DataTable = ({ multipleActions = [], page, setPage = () => {}, disableEdit
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
const handleChangeRowsPerPage = (event) => {
|
|
214
|
-
|
|
214
|
+
const newRowsPerPage = parseInt(event.target.value, 10); // Chuyển đổi giá trị thành số nguyên
|
|
215
|
+
// Lưu giá trị mới vào localStorage với khóa tùy chỉnh theo tableName
|
|
216
|
+
localStorage.setItem(`${tableName}rowsPerPage`, newRowsPerPage);
|
|
217
|
+
setRowsPerPage(newRowsPerPage);
|
|
215
218
|
setPage(0);
|
|
216
219
|
};
|
|
217
220
|
const handleDeleteMultiple = () => {
|