Sure. I wrote this a while back, and it’s actually provided in two separate Actions: TableKit itself (which you apply to the table) and TableKit Header, which you apply to the individual header columns to set their sort type. You don’t have to apply this latter Action to every header, only the ones you wish to make into specific types of sort controls.
Applying TableKit to the table will automatically create the thead and tbody elements, convert all td tags in the first row of the table into th elements, and set each of those th elements to be sortable controls.
Applying TableKit Header to a particular cell in the first row will add an additional classname to that header indicating which sort type should be used for that column.
PLEASE NOTE! I have not tested this with Freeway 6, and looking through the code to give you these hints, I cannot be certain that it will not fail there. I can’t recall if FW6 adds the tbody and thead automatically (I am pretty sure there are checkboxes in the Inspector to do so), but the result will be duplicate thead and tbody tags, because the Action doesn’t check to see if they exist already. It should work if you don’t enable that feature directly in Freeway.
But then further fun, it probably won’t do another thing it’s meant to do – remove the height from a surrounding DIV so the table can flex vertically – because it hasn’t been updated to use the new Freeway 6 style methods. Add that to my list of things to do…
Let me know how this goes for you. It should work, modulo the possible issues with 6 noted above. It is normal for you not to see anything in the Action interface, because there’s no user-level controls.
Walter
On Apr 25, 2013, at 10:25 AM, Tim wrote:
Tablekit looks like a solution to my efforts to create a sortable table. The problem is that, once I’ve added the action, the actions panel/ inspector comes up blank.
Likewise I know that somehow I have to create a table header and body to set the sorting ‘parameters’ but again nowhere to get basic guidance.
There seem to be a lot videos/ tutorials for other actions, but not for Tablekit, which leaves a newbie like myself in the dark. I’m sure it must be straight forward when you know, it’s finding it.
Can anyone cast any light?
Thanks.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options