How to Implement Pagination in Frappe UI's DataTable

Hi everyone,

I am currently working with Frappe UI and trying to display large datasets in a DataTable. However, I am facing issues with pagination. I would like to know how to enable and customize pagination in Frappe DataTable. Specifically, I want to:

  1. Control the number of rows displayed per page.
  2. Add pagination controls like “next”, “previous”, and “page numbers”.
new DataTable(tableContainer, {
        columns: columns,
        data: rows,
        layout: "fixed",
        inlineFilters: true
    });