diff --git a/README.md b/README.md index 46df82a..b8a4ee4 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,11 @@ Here's the pagination component: [itemsCount]="700" [itemsPerPageChoices]="[5,10,20,50]" [itemsPerPageFirstChoice]="10" + + [needShowFirstArrow]="true" + [needShowLastArrow]="true" + ofText="of" + rowsPerPageText="Rows per page:" > ``` diff --git a/src/lib/md-datatable-pagination.component.ts b/src/lib/md-datatable-pagination.component.ts index 4476796..9e04760 100644 --- a/src/lib/md-datatable-pagination.component.ts +++ b/src/lib/md-datatable-pagination.component.ts @@ -16,14 +16,14 @@ import { IDatatablePaginationEvent } from './md-datatable.interfaces'; @Component({ selector: 'ng2-md-datatable-pagination', template: ` - Rows per page: + {{rowsPerPageText}} {{ choice }} - {{firstIndexOfPage}}-{{lastIndexOfPage}} of {{itemsCount}} + {{firstIndexOfPage}}–{{lastIndexOfPage}} {{ofText}} {{itemsCount}}
- -