Open jiangxuguang opened 2 months ago
The Previous and Next buttons of the DataTables component introduced in the system are invalid.
eg:
Temporary solution:
const dataTableParams = { ... }; // define table const table = $(`#${elementId} #grid`).dataTable(dataTableParams); $('.dataTables_paginate ul').addClass('pagination'); // Manually add click events $('.dataTables_paginate .pagination li').on('click', (event) => { if ($(event.currentTarget).hasClass('disabled')) { return; } if ($(event.currentTarget).hasClass('next')){ table.fnPageChange( 'next' ); } if ($(event.currentTarget).hasClass('prev')) { table.fnPageChange( 'previous' ); } }); ...
The Previous and Next buttons of the DataTables component introduced in the system are invalid.
eg:![截屏2024-05-08 16 09 04](https://github.com/gamonoid/icehrm/assets/87964506/1c3df548-38d2-49b6-9c3b-e8f42aeeb8fc)
Temporary solution: