Using turbo table, how to configure to show/hide specific column and set sortable for specific column

UI Components for Angular
Post Reply
jefhu
Posts: 29
Joined: 24 Feb 2017, 22:27

23 Feb 2018, 00:46

If I am not using dynamic columns like below table, how can I hide "Vin" column and set "Color" column not sortable? (Only sort Year and Brand)

Thanks!

Code: Select all

<p-table [value]="cars">
    <ng-template pTemplate="header">
        <tr>
            <th>Vin</th>
            <th>Year</th>
            <th>Brand</th>
            <th>Color</th>
        </tr>
    </ng-template>
    <ng-template pTemplate="body" let-car>
        <tr>
            <td>{{car.vin}}</td>
            <td>{{car.year}}</td>
            <td>{{car.brand}}</td>
            <td>{{car.color}}</td>
        </tr>
    </ng-template>
</p-table>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests