U
U
user577652018-06-07 09:37:19
Angular
user57765, 2018-06-07 09:37:19

How to make a small tweak to ng2-pagination?

How can I ng2-paginationlocalize the inscription in the label in the component (For example:

this.previousLabel = 'Previous'; this.nextLabel = 'Next';
change to
this.previousLabel = 'Назад'; this.nextLabel = 'Далее';
) and change the color of buttons for switching pages. There is of course a workaround to change the settings directly in node_modules. But I would like all settings to be in my component.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
theykillimmortal, 2018-06-07
@user57765

npm says that this package has been renamed and is no longer in development.
Therefore, it is better to update to the new version . I don't think the transition will be too difficult.
For this package, in the "PaginationControlsComponent" section, the "previousLabel" and "nextLabel" inputs are described. And also there is a separate section "Styling". This will solve your problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question