Vazzo, Vincent J. (MSFC-NNJ06VA01C)[USA] wrote:
> Thanks for the link!
>
> Is there any way in Exhibit that one can have better control over the
> timeline bubbles? Like I said, I love the free filtering that Exhibit
> would give me, but I really need to just write HTML for the bubble, and
> Timeline alone lets me do that quite nicely.
>
So, in your Exhibit data file, you can write something like this
{ label: "Event X",
date: "2008-02-29",
description: "<p>This is a paragraph with a <b>bolded
word</b>.</p>"
}
And if the HTML snippet is too long, you can break it up into lines
using string concatenation:
{ label: "Event X",
date: "2008-02-29",
description: "<p>This is a paragraph with a <b>bolded
word</b>.</p>" +
"<p>This is the second paragraph.</p>" +
"<p>This is the third paragraph.</p>"
}
That's not proper JSON but Exhibit can handle it.
Then define a lens template within the timeline view, e.g.,
<div ex:role="view" ex:viewClass="Timeline" ex:start=".date">
<div ex:role="lens">
<div ex:content=".label"></div>
<div ex:content=".description"></div>
</div>
</div>
Remember, when you see a web page that uses Exhibit and does something
you want to do, just take a look at its HTML source code, and copy.
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general