primefaces / primefaces/primereact

Paginator: The possibility of wrap the subcomponents inside a div.

Open
#4,808 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Discussion Status: Needs Triage Type: New Feature
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the feature you would like to see added

I would like to wrap the FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink, so I can pass justify-content="space-between" to the paginator wrapper.
image

To achieve this layout:
image

Is your feature request related to a problem?

No response

Describe the solution you'd like

I thought of using some marker to define which subcomponents should be wrapped, maybe parentheses ( )
<Paginator layout="CurrentPageReport ( FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink ) RowsPerPageDropdown" />

Describe alternatives you have considered

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the Paginator component's layout prop and the listed link subcomponents, then trace how layout tokens are parsed and rendered. Verify that grouping the links with the requested parentheses syntax produces a wrapper that accepts justify-content="space-between".

Written by the indexing model from the issue text.

Assessment

Tech stack
css, react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.