We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be good if columns supported functions in the sortable argument. I.e.
<p-column field="x" [sortable]="customsorter">...
Where custom sorter is a standard sorting function , i.e:
customsorter(column: string, row_a: any, row_b: any): number // i.e. return -1, 0, 1 defending on comparison
Or perhaps as a temporary hack [sortable] could take a string pointing to another column.
[sortable]
This feature ofcourse would allow smart sorting on ordinal fields, such as "Severity" where alphabetical order makes no sense.
The text was updated successfully, but these errors were encountered:
Sounds good. Maybe we can add sortFunction;
<p-column sortable="custom" (sortFunction)="customSort($event)"
Similar to #196
Sorry, something went wrong.
d272b6d
Device detail -> Users: Incorrect column heading "Currently logged on" …
89220e9
…primefaces#204 (primefaces#210)
cagataycivici
No branches or pull requests
It would be good if columns supported functions in the sortable argument. I.e.
<p-column field="x" [sortable]="customsorter">...
Where custom sorter is a standard sorting function , i.e:
Or perhaps as a temporary hack
[sortable]
could take a string pointing to another column.This feature ofcourse would allow smart sorting on ordinal fields, such as "Severity" where alphabetical order makes no sense.
The text was updated successfully, but these errors were encountered: