Hi,

Exact code is here

[exhibit\trunk\src\webapp\extensions\time\scripts\timeline-view.js]

Line 340:
var hasIconKey = (this._accessors.getIconKey != null &&
this._iconCoder != null);

Line 389:
var icon = null;
if (hasIconKey) {
  var iconKeys = new Exhibit.Set();
  accessors.getIconKey(itemID, database, function(key)
{ iconKeys.add(key); });
  icon = self._iconCoder.translateSet(iconKeys, iconCodingFlags);
}

That code means; we must use IconKey and IconCoder to see icons for
events in [exhibit] timeline.

What I like icons to appear is as in normal timeline; just call
directly icon path/url for each event from datasource [json or xml].
But according to above script we need to rewrite script for our own.
Or is there any effective usage of iconkey and iconcoder for each
event not just for group icons?

Thanks,
TIN



On Aug 29, 8:04 am, TIN <[email protected]> wrote:
> Hi Alexey,
>
> Thanks. I know those examples.
>
> Sorry, my complete question should be this way "how to attach icons
> for individual events in exhibit timeline."
>
> Attaching the icon in normal timeline is quite easy. But in exhibit, I
> am confusing with Icon coder, is that only for group icons??
>
> Thanks,
>
> On Aug 27, 9:10 pm, Alexey Smirnov <[email protected]> wrote:
>
> > Hi Tin,
>
> > Check out Compact Painter example:
>
> >http://www.simile-widgets.org/timeline/examples/compact-painter/compa...
>
> > Alexey
>
> > On Fri, Aug 27, 2010 at 10:09 AM, TIN <[email protected]> wrote:
> > > Can Anyone guide how to attach icons for individual events.
>
> > > Thanks,
> > > TIN
>
> > > --
> > > 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 
> > > athttp://groups.google.com/group/simile-widgets?hl=en.
>
>

-- 
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