Yee-Ting Li wrote:
> hi, thanks for creating the exhibit javascript framework, it has been
> very helpful in getting my network monitoring web pages up and
> working :)
>
> i have a problem with how i represent the data i have: in order to
> represent whether something is working okay or not, i use a graphic
> representing the status of a row of data (eg green for ok, red for
> bad etc). the issue is that i would sometimes like to be able to
> filter by the 'graphical' column to quickly see problems. as such i
> include them in the list of facets which are exposed on the webpage.
>
> i use the Exhibit.TabularView to present the data.
>
> the issu eis that if i specify the columnFormat for this as image
> column, then the facets show the image url rather than something
> meaningful (like ok, error etc). if i use specify it as list and have
> the <img src=.../> tag as part of the text, then the whole text shows
> up in the facet view (but the graphic does still nicely show up in
> the table).
>
Right now what you want to do is not possible unless you use two
different fields, e.g.,
status: "ok",
statusImage: "/images/ok.gif",
That's duplicating data and is bad, I know. In version 2.0 (not yet
released), you will be able to do something like this:
ex:columns="..., concat('/images/', .status, '.gif'), ..."
ex:columnFormats="..., image, ..."
If you want to try out 2.0 then send me a private email and I'll guide you.
> in both cases, i would also like to use a tooltip (img alt) to allow
> a hover over the image to be able to determine what i would like to
> be shown on the facet view for this column (rather than the img src
> or element's contents), and i would like to have the facet view as
> something user definable rather than the img tag or address.
>
I'm not clear what you want here...
It would be good to send a URL to your exhibit so I can see what you
mean. Or at least attach the HTML and JSON files.
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general