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
The context (this) inside custom sorting functions point to the AureliaTableCustomAttribute instead of the code-behind class.
this
AureliaTableCustomAttribute
I have a code-behind class containing the following code:
public dateComparer(date1, date2, sortOrder) { return date1 === date2 ? 0 : ((date1 < date2 ? -1 : 1) * sortOrder); } public dateSort(a, b, sortOrder) { console.log(this); return this.dateComparer(a.date, b.date, sortOrder); }
With an HTML table with aut-sort="custom.bind: dateSort" attribute on it. When sorting the column, I get the following message:
aut-sort="custom.bind: dateSort"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The context (
this
) inside custom sorting functions point to theAureliaTableCustomAttribute
instead of the code-behind class.I have a code-behind class containing the following code:
With an HTML table with
aut-sort="custom.bind: dateSort"
attribute on it. When sorting the column, I get the following message:The text was updated successfully, but these errors were encountered: