PrimeReact Data table - How to show tooltip or title on a cell?

UI Components for React
Post Reply
venubothsa
Posts: 1
Joined: 11 Sep 2020, 17:28

11 Sep 2020, 18:16

I'm display a data table using prime react data table and I wanted to show tooltip or title like marked in below image, when mouse over doing on a cell.
Image

I went through the Column component and i didn't find any relevant keyword to display tooltip or title on a cell, which is being used to show columns in data table.

Code:

Code: Select all

<DataTable
  value={this.state.products3}
  editMode="row"
  dataKey="id"
  onRowEditInit={this.onRowEditInit}
  onRowEditCancel={this.onRowEditCancel}
>
  <Column field="code" header="Code" editor={(props) => this.codeEditor('products3', props)}></Column>
  <Column rowEditor headerStyle={{ width: '7rem' }} bodyStyle={{ textAlign: 'center' }} title='Edit'></Column>
</DataTable>
Source: https://primefaces.org/primereact/showc ... table/edit
Stack Overflow Question: https://stackoverflow.com/questions/638 ... -on-a-cell

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests