Pagination is enabled by setting paginator property to true and defining the rows attribute as the number of rows per page.