TreeTableSortIcon in Angular 19 #3513
Unanswered
RBITSRobin
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
i´m implementing a TreeTable and can´t get a visible sort icon running.
Sorting itself works well, but there´s no icon showing the sort order.
I think it´s broken in Angular 19 because it doesn´t work in the current documentation as well.
Except from the docu:
<p-treetable [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{'min-width':'50rem'}"> <ng-template #header let-columns> <tr> <th *ngFor="let col of columns" [ttSortableColumn]="col.field"> {{ col.header }} **<p-treetableSortIcon [field]="col.field" />** </th> </tr> </ng-template> <ng-template #body let-rowNode let-rowData="rowData" let-columns="columns"> <tr [ttRow]="rowNode"> <td *ngFor="let col of columns; let i = index"> <p-treeTableToggler [rowNode]="rowNode" *ngIf="i === 0" /> {{ rowData[col.field] }} </td> </tr> </ng-template> </p-treetable>
Beta Was this translation helpful? Give feedback.
All reactions