Michiel wrote:
> Hi,
>
> I am new to all this and have some questions. My toy exhibit is at:
> http://members.tele2.nl/m.d.nauta/experimenteel/KootExhibit.html
>
> 1: The data exhibit works on is an array of objects called "items"
> where each property of an object is a primitive value (string/number
> etc) or an array of primitive values. Can exhibit work with more
> hierarchical data where a property would be a object?
>   
Yes, you just need to refer to items by their IDs (which are their 
labels if no IDs are given),

    items: [
       { label: "Homer Simpson",
          children: [ "Bart Simpson", "Lisa Simpson", "Maggie Simpson" ]
       },
       { label: "Lisa Simpson",
          age: 7
       }
    ]

> 2: In expressions I often feel the need to refer to the "node" I am
> currently in. How do I do this. At present I typically use .label!
> label but isn't there something a bit less clumsy?
>   
You can use "value" (no dot in front). That evaluates to the ID of the item.

> 3: Why is exhibit so sensitive to closing-tags. Why must I use <td
> ex:content=".name"></td> instead of <td ex:content=".name" />?
> 4: When using the timeline extension, can the ex:start use an
> expression containing functions?
>   
That's rather the browser's sensitivity, not Exhibit's. Exhibit "sees" 
whatever the browser "sees".

David


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" 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/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to