Hello, SIMILErs,

I've been playing a bit with Exhibit, and was wondering if you could
give me a quick example of what a simple arithmetic expression would
look like? For example, if I have a quantity property and a cost
property and I wanted an expression for quantity*cost (e.g. as a column
in a tabular view), what would the expression look like?

many thanks!
Lee

PS In my play tonight, I've made additions to the Exhibit code to handle
two cases which I couldn't see how to do without adding to Exhibit:

   1) I wanted some properties to be formatted as currency values (in
this case a leading $ and then commas separating every three digits; in
reality you'd want this to be delegated to the proper l10n module), so I
added a 'currency' valueType to makeValueSpan

   2) I wanted an item with multiple URLs for a column of type 'image'
in the tabular view to actually display only a single image but provide
a way to navigate between the images (for now I just use a click
handler, but I'm imagining a little left and right arrow below the
image). I did this by adding a "one-image" column type to the tabular
view and adjusting the code in tabular-view.js that switches on
column.format to handle this.

I'd love to know if I missed existing ways to (better) accomplish these
goals, and if not I'd be glad to share the code I added.

PPS I'm also curious if there's an easy way to get two different views
on the page at once - for example a map view and a tabular view. I
imagine it must be possible, but in my initial perusals of the
documentation, I didn't see any examples of this.

thanks!


_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to