Closed esnyder232 closed 7 years ago
Hello Eric.
This is a use case I have not considered before. I will see what can be done about it.
You were very close in your syntax. I just did some testing and this will work:
<th repeat.for="col of headers" aut-sort="key.bind:col">
Cheers
Yeah that worked! Thanks alot man!
You are welcome :)
Hey,
We're trying to make a table with dynamic headers. The documentation states to sort by using "key: [column-name]". If a key is "a string with the name of the column it will sort by" then by using the Aurelia convention you should be able to apply string interpolation like so:
<th repeat.for="col of headers" aut-sort="key: ${col}">
This resulted in an error message saying that key was null. Is there something we're doing wrong or do you think this is something that will be supported in the future?
Thanks, Eric