Hi Andy,
I've just committed a fix that will let you specify any arbitrary
expression for retrieving event labels. You need to link against the
development version of the API:
<script
src="http://simile.mit.edu/repository/exhibit/trunk/src/webapp/api/exhibit-api.js"
type="text/javascript"></script>
And then in your timeline div, add an attribute like this:
ex:eventLabel=".timelinelabel"
Let me know if that works.
David
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am a Simile noob, but quite impressed with exhibit/timeline. I am
> working on a real-life application with a JSON datasource. When viewing
> the timeline, all points are labelled with the 'label:' property in the
> JSON structure. I'd like to override this, to pick an arbitrary data
> field to use as my datapoint label. Is this simple to do?
>
> example:
>
> items: [
> { type: 'Character',
> label: 'Trix Rabbit',
> timelinelabel: 'Trix Rabbit Long Description',
> cereal: 'Trix',
> brand: 'General Mills', .....
>
> I want to use 'timelinelabel' rather than 'label'.
>
> Thanks
> Andy
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general