Questions tagged [paginator]

paginator is a common name for a component of several different software offerings which assists with pagination of the output from the software. Software packages that have a Paginator component include CakePHP, Django npm, and the YUI library. This tag should be used only for software packages with a specific component or utility known as Paginator such as CakePHP or Django and not for general purpose page formatting functionality.

374 questions
21
votes
6 answers

How to customize mat-paginator in Angular Material

I want to customize mat-paginator. By default I am getting paginator like this which have given in below link https://material.angular.io/components/paginator/overview. But I want pagination like below image. How can I do this using…
ananya
  • 1,001
  • 6
  • 33
  • 50
17
votes
3 answers

How to implement a paginator that doesn't call count(*)

I am working on a django website that has a MySQL innodb backend. We have hundreds of thousands of records in several of our tables and this is causing some site stability/performance issues in the admin. Specifically, django likes to make count(*)…
ebensing
  • 6,409
  • 4
  • 18
  • 20
15
votes
1 answer

How do I access the request object in a Django-CMS plugin?

I have a Django-CMS plugin which is used to display a list of objects. The required functionality of the plugin is that the list is paginated and can be re-ordered based on properties of the objects in the list. Handling this functionality with…
Eric Ressler
  • 1,374
  • 1
  • 14
  • 25
12
votes
6 answers

Why doesnt paginator remember my custom parameters when I go to page 2?

When using the paginator helper in cakephp views, it doesnt remember parts of the url that are custom for my useage. For example: http://example.org/users/index/moderators/page:2/sort:name/dir:asc here moderators is a parameter that helps me…
Alexander Morland
  • 6,356
  • 7
  • 32
  • 51
10
votes
2 answers

Laravel 5.3 Pagination Total number of pages

I have a Paginator instance $paginator in Laravel App, I want to display 'Last' in pagination, so I need a link to the last page. How to get the last page number in laravel 5.3?
Fominykh Maxim
  • 485
  • 1
  • 6
  • 20
9
votes
2 answers

Can I change the default mat-paginator size depending on screensize?

I have a angular project with a mat-table and a mat-paginator, similar to the following:
Woody
  • 1,677
  • 7
  • 26
  • 32
9
votes
5 answers

Paginate Django formset

I have a model formset that I want to display 10 forms at a time using Django's Paginator, but it can't be done like paginator = Paginator(formset, 10). What's the correct way to do this, if there is a way?
Aylen
  • 3,524
  • 26
  • 36
8
votes
2 answers

Cake Php paginator issue

I am facing a weired issue. I have written code for pagination. Everything is working as expected, but only conditions are not working(only certain conditions) Here is my code for pagination. //declaration public $paginate = array( 'limit'…
Karan
  • 2,102
  • 2
  • 22
  • 31
8
votes
2 answers

Pagination sort link on a virtual field/entity property in CakePHP 3.0

I want to create a pagination sort link on a virtual field/entity property in CakePHP 3.0. In CakePHP 2.x I used to create a virtual field, and then create a pagination sort link on that field. However, in CakePHP 3.0, virtual fields have been…
Tijme
  • 39
  • 2
  • 24
  • 41
7
votes
3 answers

Cakephp 3.x Sorting of another model is not working

I have two models Users & Roles Here "Roles hasMany Users" and "Users belongsTo Roles" When the user saved we're also asking user's role & record saved. Problem : I have list of users with column firstname, lastname,roles. Each & Every column has…
Pratik Patel
  • 131
  • 1
  • 3
  • 12
6
votes
1 answer

Is there an EventListener on mat-paginator last or first button?

I need to listen when I especially click on mat-paginator last-button. Is there an event listener or a way to do this ? I tried : (page)="pageEvent = $event;emitPagination($event)" but it does not return information about where I clicked. and same…
Paulolafoudre
  • 87
  • 2
  • 7
6
votes
1 answer

Cannot read property 'page' of undefined when making a material paginator

I have been following the Angular Material Data Table paginator tutorial here. When they construct their paginator, they declare a paginator using @ViewChild(MatPaginator) paginator: MatPaginator; in their component.ts file. With this declaration,…
Atticus29
  • 4,190
  • 18
  • 47
  • 84
5
votes
5 answers

2 mat-paginator for the same data source

I have a mat-table that might show up to 100 entries per page. At first, I had one mat-paginator at the bottom that worked fine. Now I'm being asked to set a paginator at the top and another one at the bottom of the table, so the user won't have to…
5
votes
0 answers

how to customize mat paginator

in my project i need to iterate through an array and display a single item at a time. The array navigation should be through a Next and a Previous button. I used mat table to achieve this along with mat paginator. Is there any way to customize the…
nivedita
  • 111
  • 2
  • 7
5
votes
3 answers

PHP: Generate Laravel Paginator Secure (HTTPS) Links

I'm developing an app using Laravel 4.2 over HTTPS with secure routes and redirects. I'm using Paginator to paginate results, but the links rendered in the view points to the http pages, how can we force Paginator to generate https links?
Waleed Ahmad
  • 2,184
  • 4
  • 21
  • 23
1
2 3
24 25