How can I let table-data or report-table have sortable columns?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answer from the company
-
There is currently nothing built into the plugin, but you can get it working with the assistance of the {table-plus} macro. For example:
{table-plus:sortIcon=true|enableSorting=true|sortColumn=1|columnTypes=S,S,D"MMMM d, yyyy"}
{report-table}
{local-reporter:content:children}
{report-column:title=Name}{report-info:content:title|link=true}{report-column}
{report-column:title=Creator}{report-info:content:creator|link=true}{report-column}
{report-column:title=Date}{report-info:content:creation date|format=MMMM d, yyyy}{report-column}
{report-table}
{table-plus}
The company says
this answers the question
-
Inappropriate?There is currently nothing built into the plugin, but you can get it working with the assistance of the {table-plus} macro. For example:
{table-plus:sortIcon=true|enableSorting=true|sortColumn=1|columnTypes=S,S,D"MMMM d, yyyy"}
{report-table}
{local-reporter:content:children}
{report-column:title=Name}{report-info:content:title|link=true}{report-column}
{report-column:title=Creator}{report-info:content:creator|link=true}{report-column}
{report-column:title=Date}{report-info:content:creation date|format=MMMM d, yyyy}{report-column}
{report-table}
{table-plus}
The company says
this answers the question
-
Inappropriate?Awesome!
I just got one small problem with it: it doesn't show the icon, although I enabled it. Do you have an idea what the problem could be?
Thanks
Cass
I’m happy
-
You're referring to the 'sortIcon' I assume? Not sure. I'm assuming that it is triggered via CSS, so possibly there is a conflict somewhere? -
Inappropriate?Yes, I'm referring to the sortIcon.
Will try to find out where we're overwriting it. Just thought that might be a common problem, but possibly due to our theme & settings.
Thanks!
Cass -
Inappropriate?I just looked at another site I've worked on that uses table-plus and the sortIcon doesn't work there either. I'd suggest getting in touch with the developer of table-plus to see if they have any ideas...
Loading Profile...


EMPLOYEE
