Custom column header

UI Components for React
Post Reply
fernandotholl
Posts: 3
Joined: 24 Jun 2021, 01:53

30 Jun 2021, 20:44

Dear,
Good afternoon

My first post here on the forum;

I found some posts related to my problem, but it was for PrimeNG.

Is there the possibility of creating a custom header for one of the columns of my Datatable?

Something like:

Code: Select all


actionHeaderTemplate = (columnData) => {
  return (
    <React.Fragment>
        <div>Custom header and order icons</div>
    <React.Fragment>
  )
}

 <Column 
    header={this.actionHeaderTemplate} 
    headerStyle={{width: '4%', textAlign: 'center'}} 
    bodyStyle={{textAlign: 'center', overflow: 'visible'}} 
 />
My goal is to put another sort icon to customize its behavior

mcandu
Posts: 107
Joined: 20 Jan 2021, 16:31

05 Jul 2021, 15:39

Nice feedback. Thank you for your interest. There is no way to do it for now, but could you please create github issue for this ?

Best Regards.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests