Ngx-bootstrap: How to apply custom styling to the pagination component?

Created on 16 Mar 2017  路  2Comments  路  Source: valor-software/ngx-bootstrap

I'm using the pagination component and I want ato apply my own styling to the component. In the documentation is saw there was something like pageBtnClass provided but I'm using the following line and it

<pagination class="pull-right-sm" [boundaryLinks]="true" [maxSize]="5" [rotate]="true" 
[itemsPerPage]="values.maxNumberOfRowsPerPage" [totalItems]="values.totalNumberOfRows" 
[ngModel]="values.currentPage [pageBtnClass]="myCustomClass" (pageChanged)="update($event)" 
previousText="&lsaquo;" nextText="&rsaquo;" firstText="&laquo;" lastText="&raquo;"></pagination>

This should add the class "myCustomClass" to the list in the pagination component. But it seems nothing even is added to the class of every list item.

comp(pagination) question

Most helpful comment

You can use /deep/ feature of Angular https://angular.io/docs/ts/latest/guide/component-styles.html as a workaround.

/deep/ .page-link { color: red !important; }
I added it in the wrapper styles file and it changed number color

All 2 comments

I am also finding that I am unable to override the default pagination styles (V2.0.0-rc.0).

You can use /deep/ feature of Angular https://angular.io/docs/ts/latest/guide/component-styles.html as a workaround.

/deep/ .page-link { color: red !important; }
I added it in the wrapper styles file and it changed number color

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PascalHonegger picture PascalHonegger  路  3Comments

ghiscoding picture ghiscoding  路  3Comments

ravirajhalli picture ravirajhalli  路  3Comments

haisaco picture haisaco  路  3Comments

RolfVeinoeSorensen picture RolfVeinoeSorensen  路  3Comments