Hi,
I find it really not easy to use a sortable/filterable table in xwiki
now + it exposes internals (like name and location of CSS and JS
scripts):
Syntax 1.0:
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
<table id="tableid" class="grid sortable filterable doOddEven">
..
</table>
Syntax 2.0:
{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
{{html}}
<table id="tableid" class="grid sortable filterable doOddEven">
..
</table>
{{/html}}
What's the best practice? How do we fix this quickly? (the longer fix
is to implement either sorting/fitering at the syntax level using
parameters or by introducing a new generic table/grid macro).
Do we remove the documentation for this? (it's currently on the syntax
page and broken since it doesn' t mention using ssfx/jsfx).
Thanks
-Vincent