Hi,
i wanted to use pTable in a modal bootstrap dialog.
I used the asp.net zero powertool to generate main components.
In the create or edit modal component i added the p-table from primeNg but no styles are applied to the table.
I have added the class 'primeng-datatable-container' to p-table tag as a workaround.
thx for your help
3 Answer(s)
-
0
Is the p-table in a div like below ?
<div class="primeng-datatable-container"> <p-table></p-table> </div>
-
0
that is the workaround.
i compared my code with the generated one from the main page with the p-table for an entity and realized that this also wrapped with a div and the primeng-datatable-container class.
Shouldn't the styles be applied automatically, like in the showcase of primeng [https://www.primefaces.org/primeng/#/table]) ?
-
0
@ChristianW we have customized the styles of primeng table by using the container div I have shared. If you can share the look of the table without using "<div class="primeng-datatable-container">", I can comment.