villainoustourist / Blazor.Pagination

A reusable pagination component for Blazor.
MIT License
38 stars 18 forks source link

*Texts are concatenated #7

Open fogskum opened 2 years ago

fogskum commented 2 years ago

Describe the bug Settings e.g. NextText will be concatenated with hard coded value

To Reproduce Steps to reproduce the behavior: Set NextText="Next"

Expected behavior Title should say "Next" but it says "NextGo to next page"

villainoustourist commented 2 years ago

How are you setting the text? - and what version are you on?

The example solution has the following (with slight modifications) - and it seems to work:

<BlazorPager CurrentPage="@_data.CurrentPage" PageCount="@_data.PageCount" VisiblePages="3" ShowFirstLast="true" ShowPageNumbers="true" FirstText="&laquo;" LastText="&raquo;" NextText="This is a test?" PreviousText="&lsaquo;" OnPageChanged="(async e => { _page = e; await GetData();})"> </BlazorPager>

urudnicka commented 2 years ago

I have the same issue and the version I'm using is 0.2.16. You just hard-coded it in BlazorPagination.razor and changing it via NextText="Next" and PreviousText="Prev" only concatenates both values.

SimoneOttavianelliITR commented 1 year ago

Does anyone know how to change the title of the buttons to go back and forth pages?