primefaces / primefaces/primereact

DataTable Column Header Element

Open
#2,393 1 comment 0 reactions 1 assignee View on GitHub

@mertsincan is already working on this.

Since Nov 6, 2021.

Type: Enhancement
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ ] bug report
[X ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior
I wish to add right aligned element, to dataTable column header. Like that 'X' icon
image
I could achive this, by changing column.header content, but since its on the left I had to position absolute my icon, which works fine as long as I dont resize column to be smaller and then icon overlapping everything and it is a mess.

Expected behavior
There should be a way to easily add element to columnHeader or/and make columns closable like in my screenshot. Both would work for me

Minimal reproduction of the problem with instructions

Please tell us about your environment:

  • React version:
    7.0.1

  • PrimeReact version:
    7.0.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.