Hi prime,
I have upgraded datatable to ver. 0.7.0.
I have configured column sorting like this.
<p-dataTable [value]="rowData" resizableColumns="true" [responsive]="true">
<p-column *ngFor="#col of columnDefs" [field]="col.field" [header]="col.header" [style]="col.style" [sortable]="true"></p-column>
</p-dataTable>
it showing datatable where i can resize columns that's working fine. Actually, i have only single row as rowData and column sorting is not working.
Is that due to single row in the data table?
Please help me with this.
Datatable sorting [Sort icons not visible]
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
For custom icons, you can use whatever you like for sure but to customize PrimeNG icons, you need to override font awesome icons like fa-sort-asc and provide your own icon content. So fontawesome styles will be there as placeholders like fa fa-sort and content will come from your overrides. I can't think of another way right now.
So adding font awesome fixed the issue for you?
So adding font awesome fixed the issue for you?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
We'd like to hear your feedback to see if we can provide hooks to override icons easily.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 27 guests