Sorry I've been out of this thread as I've been tied up for a day or two.

> Would it make more sense for this widget to output a space separated list?

At the moment, the only fields that fully support lists of values are the
"tags" field and the "list" field. As BJ pointed out, these fields are
configured by the core with a serializer and deserializer that knows how to
translate the string value to and from a space separated list.

If you store an array as the value of another field then it will not be
properly serialised on when the tiddler is saved; instead the default JS
behaviour kicks in and the array is converted to a comma delimited list
(Try executing [0,1,2] + "" in the browser console to see what I mean).

All of the behaviour I've described is inherited from TW Classic. The plan
going forward is expressed in the roadmap with these words:

"Tiddler object format (to provide true polymorphism of field values)"

The idea is to move responsibility to the caller for serialising field
values into strings. This will mean providing some new APIs on the Tiddler
object.

In the meantime, as BJ suggests, the fix is for you to explicitly serialise
your lists when you store them in a tiddler.

Best wishes

Jeremy



On Fri, Jun 20, 2014 at 8:32 PM, Danielo Rodríguez <[email protected]>
wrote:

> Hello Matabelle,
>
> Thank you for the detailed explanation. Now it is Cristal clear.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to