How to get ref of DataTable

UI Components for React
Post Reply
bluu926
Posts: 4
Joined: 20 Jun 2018, 21:23

20 Jun 2018, 21:51

Using the latest primereact: 1.6.2

I was trying to exportCSV() following this:
http://primefaces.org/primereact/#/datatable/export

I'm using the following in <DataTable>

ref={(el) => { this.dt = el; }

Then I have a Button that does an onlock for:

this.dt

However, I get a undefined error for dt.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests