This works for standard tables - I have a script (courtest of Eric 
Schulman) which builds a table for me. I would love to add this sorting 
plugin but it seems to not recognize the class.

Here's the script:  I have tried adding the |sortable|k tag to the 
beginning, end and middle of the script (where the titles are rendered. I 
am getting one of three thngs - two columns called sortable and k, or an 
error that the property is undefined.

By adding the line to the header as I have done, it seems that is what 
makes a static table work. Any thoughts? I'm sure it will be extremely 
obvious after it's pointed out to me but for now I'm stumped.


! Current by priority
<script>
   var out="|sortable|k \n";
   var fmt='|[[%0]]|%1|%2|%3|%4|%5|\n';
   var tag='current';
   var otcm='outcome';
   var itnt = 'intent';
   var nxt = 'next';
   var pr = 'priority';
   var lstChg = 'last modified';
   var 
tids=store.sortTiddlers(store.getTaggedTiddlers(tag),'modified').reverse();
   out+= "|!Item|!Priority|!" + otcm + "|!" + itnt + "|!" + nxt + "|!Last 
Updated|\n";
   for (var i=0; i<tids.length; i++) {
      var t=tids[i].title;
      var o=store.getTiddlerSlice(t,otcm);
      var e=store.getTiddlerSlice(t,itnt);
      var n=store.getTiddlerSlice(t,nxt);
      var p=store.getTiddlerSlice(t,pr);
      var d = tids[i].modified;
      out += fmt.format([t,p,o,e,n,d]);
   }
   out += "|" + tag + " Dashboard|c";
   return out;
</script>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/L3jGBUQ4cVQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to