PrimeNG: Differnce between p-Table and p-dataTable

半城伤御伤魂 提交于 2019-12-07 05:39:45

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/52983328/primeng-differnce-between-p-table-and-p-datatable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!