On Wed, Oct 14, 2009 at 11:56 AM, Laurent <[email protected]> wrote:
>
> Hi all,
>
> Thanks for your great work inside TiddlyWiki community.
> I reviewed http://tiddlywiki.org/wiki/Dev:Extended_Fields to extended
> the tiddlers.
>
> But I did not understand how I can select the type of my custom
> fields. In fact, this type could be :
>  o string
>  o boolean
>  o integer

they're all just strings!

> And I would like to customize the way the field is shown as :
>  o boolean as a checkbox
>  o strings that are inside a value should be inside a predefined list
>  o integer should be check to be an integer, or be editable using a
> field + a slider

you're going to need some meta-data to do this. The TiddlyWiki options
have names beginning with "txt" for a string  or "chk" for a checkbox
(boolean) .. I'd either do the same with a default to "txt" for fields
not following the convention, or create a FieldsType tiddler with a
table containing |field|type| and use store.getTiddlerSlice() to
lookup the type.

-- 
Paul (psd)
http://blog.whatfettle.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
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/tiddlywikidev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to