Tooltip in DataTable

UI Components for React
Post Reply
abhijeetsinha9
Posts: 4
Joined: 28 Mar 2021, 18:03

17 Jul 2021, 13:35

I have prime react datatable. How can i implement tooltip. Below is the code i used.

import { Tooltip } from 'primereact/tooltip';

<DataTable
className="p-datatable-striped"
value={this.prop.value}>
</DataTable>

<Tooltip target=".p-datatable-striped" mouseTrack mouseTrackLeft={10}/>

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

26 Jul 2021, 09:07

Hi, could you try add content props to Tooltip ?

Code: Select all

<Tooltip target=".p-datatable-striped" content="PrimeReact" mouseTrack mouseTrackLeft={10}/>

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests