Flexigrid and TiddlyWiki

114 views
Skip to first unread message

Poul

unread,
Aug 9, 2011, 2:52:39 AM8/9/11
to TiddlyWiki
Hoping to pave the way for a future project of mine, I wondered if
anyone has tried to integrate Flexigrid (http://www.flexigrid.info)
with TiddlyWiki?
If so, Google hasn't noticed, as far as I can tell :-/. Although it
has noticed my interest in the subject :-).

If not, there's still a chance that someone will beat me to it and
post their results here.

/Poul

PMario

unread,
Aug 9, 2011, 11:04:39 AM8/9/11
to TiddlyWiki
Just to mention it. Have you seen SlickGrid allready?

https://github.com/mleibman/SlickGrid/wiki

-m

Måns

unread,
Aug 9, 2011, 3:02:28 PM8/9/11
to TiddlyWiki
Hi Poul and Mario
> Just to mention it. Have you seen SlickGrid allready?

Would it be possible to make one of those Grids work with tiddler
data: fields, tags, slices and sections??
That would be truly awesome!!
Or are they ment to work with data stored on some serverside db only?

Cheers Måns Mårtensson

Poul

unread,
Aug 12, 2011, 1:30:56 AM8/12/11
to TiddlyWiki
I just discovered http://rumkin.com/tools/tiddlywiki/#SortableGridPlugin

which, in the context of giewiki, should definitely be my first
choice, being much more lightweight and not dependent on jQuery.

/Poul
http://giewiki.appspot.com | http://code.google.com/p/giewiki

Alex Hough

unread,
Aug 12, 2011, 3:58:53 AM8/12/11
to tiddl...@googlegroups.com
"Would it be possible to make one of those Grids work with tiddler data: fields, tags, slices and sections??" , said Måns
"That's something I would be interested in!", exclaimed Alex



Making from tables (to my mind) is quite a task in TW. You need to go to the store, get fields, slices and sections then construct strings to pass to the wikifier (or use  html tags)

The Flexigrid accepts JSON, and generally It seems to me that JSON is the way to go these days.

So, perhaps a way of converting slices, sections and fields into JSON -- which can then me sent to generic  table writing plugins.




Jon has done some great looking work with data and charts [1] where charts are generated from tables.

Tabling solutions could be developed with charting in mind and in such a way that TW's data structure can be used.




Alex


[1] http://charts.tiddlyspace.com/







--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.


Eric Shulman

unread,
Aug 12, 2011, 5:44:39 AM8/12/11
to TiddlyWiki


On Aug 11, 10:30 pm, Poul <poul.stauga...@gmail.com> wrote:
> I just discoveredhttp://rumkin.com/tools/tiddlywiki/#SortableGridPlugin
>
> which, in the context of giewiki, should definitely be my first
> choice, being much more lightweight and not dependent on jQuery.

See
http://tiddlywiki.squize.org/#[[New%3A%20TableSortingPlugin]]
and
http://www.TiddlyTools.com/#GridPlugin

enjoy,
-e

Poul

unread,
Aug 13, 2011, 7:31:03 AM8/13/11
to TiddlyWiki
Thanks everyone,

Although Tyler's version and Saq's version are named differently, and
Saq claims to be the author of his and documents it differently, it
does seem that they have an awful lot in common (not really having
reviewed the code, but judging from the examples [near identical] and
how they behave). Is it entirely fair of Saq to claim ownership of his
version..?

/Poul

Eric Shulman

unread,
Aug 13, 2011, 9:14:10 AM8/13/11
to TiddlyWiki
> Although Tyler's version and Saq's version are named differently, and
> Saq claims to be the author of his and documents it differently, it
> does seem that they have an awful lot in common (not really having
> reviewed the code, but judging from the examples [near identical] and
> how they behave). Is it entirely fair of Saq to claim ownership of his
> version..?

Having actually *looked* at the code for SortableGridPlugin (SGP) and
TableSortingPlugin (TSP), I can definitely see some similarities.
However, there is a good reason for this: the code in *both* plugins
seem to be based, in part, on the work of Stuart Langridge, who
published a widely-reproduced solution for javascript-based sortable
tables, back in 2003 (long before TiddlyWiki even existed).

As a result of this common ancestry, both SGP and TSP share several
key aspects that are inherited from Langridge's original
implementation and documentation. For example, the contents in the
sample tables (e.g., "Bloggs, Fred"... etc.) are "nearly identical"
because both were apparently copied and adapted from the sample data
shown in Langridge's 2003 original posting.

In addition, both plugins use the same syntax for adding a CSS
classname ("|sortable|k") to the table, as well as the syntax for
designating a 'heading' row ("|foo|bar|baz|h"). This is because
Langridge's code also uses the "sortable" CSS classname and the <th>
(table heading) element to specify and control sorting on the columns
in a table.

There are also similar 'code patterns' used in some funtions of both
plugins. However, this would be the natural consequence of both
plugin authors adapting Langridge's original implementation for use in
TiddlyWiki, and I don't think it represents any illicit borrowing from
each other.

One major difference worth noting is the *size* of each plugin:
SortableGridPlugin weighs in at 15986 bytes, while TableSortingPlugin,
is only 5849 bytes. Given that both provide the same functionality,
the obvious choice is for the smaller implementation.

-e

Poul

unread,
Aug 13, 2011, 11:53:19 AM8/13/11
to TiddlyWiki
Thank you for the analysis - I guess I was just being lazy.

/Poul
Reply all
Reply to author
Forward
0 new messages