Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PrimeNG: Differnce between p-Table and p-dataTable

https://www.primefaces.org/primeng/#/table

As per the above link in the latest version of PrimeNG p-dataTable is deprecated.

I have implemented my tables using version 5.2.7.

Does it mean I have changed all the implementation? I have made for p-dataTable to p-table to use all new feature available for the table?

What is the best way to upgrade my table implementation?

And if I don't do that then will the latest version of PrimeNG will support for p-dataTable?

like image 850
Ankita Bhatt Avatar asked Oct 25 '18 07:10

Ankita Bhatt


People also ask

How do I add a row to PrimeNG p table?

In the component where the PrimeNG p-table is used, a button is added at the bottom of the p-table. The button has a pAddRow directive, 'table' and 'newRow' @Input are assigned values. When the 'Add' button is clicked, a new row is added at the bottom of the table as shown below.

How do you make a PrimeNG table responsive?

Step 1: Create an Angular application using the following command. Step 2: After creating your project folder i.e. appname, move to it using the following command. Step 3: Install PrimeNG in your given directory. Example 1: Below is a simple example demonstrating the use of the Angular PrimeNG Table Responsive.

How do you expand all rows in PrimeNG table?

(onRowExpand) and (onRowCollapse) : These two methods are really helpful to toggle the (+)(-) icon when user expands or collapses all the rows manually. That's all about expand/collapse all rows.

What is rowData PrimeNG?

let-item="rowData" in HTML is the equivalent of let item = rowData in Typescript. It's used in Angular templates <ng-template> . let-col use the implicit declaration, which would be let col = col . The variables rowData and col are declared by the primeNG module.


1 Answers

p-table which is also known as TurboTable, we can say it is advanced version of p-dataTable. PrimeNG team highly improved. As per the documentation p-dataTable can render 5000 rows of 8 columns in 10 seconds whereas TurboTable does it in less than 0.5 seconds.

Does it mean i have change all the implementation i have made for p-dataTable to p-table to use all new feature available for table?

For the performance improvement they have created all new p-table component. So If you want to achieve all new feature you will have change your implementation. Some more details here PrimeNG Turbo Table

What is the best way to upgrade my table implementation?

And if i don't do that than will the latest version of PrimeNG will support for p-dataTable?

For upgrading table component you need to follow the documentation. That is the only way to upgrade. Most probably latest version of PrimeNG will not support p-dataTable. You can see the last comment at this link : TurboTable. They clearly mentioned: It is deprecated and will be removed in a future release so that we can focus on improving TurboTable.

For more details you can see the thread at Github

like image 124
DirtyMind Avatar answered Sep 23 '22 13:09

DirtyMind