how to invert sortField primeng
sortField="userName" [sortOrder]="-1"
how to invert sortField primeng
sortField="userName" [sortOrder]="-1"
how to default sort item in primegng
<p-table [value]="offers" sortField="totalPrice">...<p-table>
in case of data binding you need to use curly brackets []
<p-table [value]="offers" [sortField]="totalPriceValue">...<p-table>
and for you case isRelventPrice$ this will work
<p-table
[value]="offers" [sortField]="(isRelventPrice$ | async)? 'totalPrice' : 'unitPrice'">
....
</p-table>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us