Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

pTable in bs-modal not styled #5359


User avatar
0
kpmg created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Is the p-table in a div like below ?

    <div class="primeng-datatable-container">
        <p-table></p-table>
    </div>
    
  • User Avatar
    0
    kpmg created

    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]) ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    @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.