Skip to content

paginator: add methods for first and last record on page #262

Description

@khorsky
  • Explain your intentions
    Add two simple methods to the paginator, that could be useful for the user of the paginator: firstRecordOnPage, lastRecordOnPage. It would allow to display current record range on page in pagination visualization when needed (eg. "records 20 - 27 of 27").

  • It's up to you to make a strong case to convince the project's developers of the merits of this feature
    These methods provide quite simple calculations, that are based on data already known in paginator. When one wants to display this in application, it must be calculated all over again. It seems logic to have all the pagination math here.

I would prepare PR in case you found this request beneficial. Otherwise feel free to close it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions