Answer the question
In order to leave comments, you need to log in
How to make a small tweak to ng2-pagination?
How can I ng2-pagination
localize the inscription in the label in the component (For example:
this.previousLabel = 'Previous'; this.nextLabel = 'Next';
change tothis.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
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 questionAsk a Question
731 491 924 answers to any question