FLUID-3822: Pager demo: Patch for sortable columns
acheetham at ocad.ca
Wed Nov 10 14:05:37 UTC 2010
[I tried to send this message to the list last night, but it doesn't seem to have shown up. If you end up getting it twice, sorry...]
I've attached a patch to FLUID-3822 which implements sortable columns in the Pager demo:
It's just a first pass, there are still some changes to be made, but I wanted to get it out there (plus I was working from home, so I wanted it accessible from the office today).
1) The columnDefs object is hard-coded. This should be changed to be programmatically generated.
2) In modifying the HTML, I noticed that the demo uses rsf:ids - this needs to be removed!
3) Jon, there is still no affordance whatsoever that some of the columns are sortable. The mock-up shows the arrows, so we'll have to add those. If this is going to be done through a CSS class, we can add the class programmatically using the 'sortableHeader' and 'unsortableHeader' decorators (e.g. using a jQuery "addClass" decorator, perhaps).
Anastasia Cheetham Inclusive Design Research Centre
acheetham at ocad.ca Inclusive Design Institute
More information about the fluid-work