Charles Cowan wrote:
> David:
>  
>    As always, thank you for the work by you and your team on Exhibit.  
> It continues to get better and I like  the change in version 2.  I 
> have a few items that I need some help on.  I've tried to format some 
> currency properties.  I've indicated that the valueType for the 
> property is 'currency'.  I've tried this - ex:formats="currency 
> {symbol :'$M'; symbol-placement : last}" - in the <div> for the lens 
> and it seems to have no effect on the property.  I found I could 
> change the number of decimal places, but can't seem to get the symbol 
> or symbol placement to work.
Any URL for me to look at? You can just put in fake data if you can't 
share the real data. I haven't tested the currency support much and I 
won't be surprised if there are some bugs.
 
>   The second item is a desire to control the formatting of a lens. I'm 
> using Thumbnails (but Tiles could work) and would like to control the 
> background color - like a row styler.  I have, in fact, tried to make 
> a row styler work and I also tried to use the new coder capability but 
> couldn't seem to make either affect the background.  Would one of 
> these work?  Or is there something in the new "More powerful lens 
> template constructs, now including if-else, select-case, 
> -style-content, and -style-subcontent " that would help me (perhaps in 
> those tantalizing "-style-content" and "-style-subcontent" items).  
> Could you shed some light on these capabilities?
Perhaps you can try something like this

    <div ex:role="lens" ex:class-subcontent="lens-{{.political-party}}">
       ...
    </div>

and then define various CSS classes

    .lens-democrats {
       background: blue;
    }
    .lens-republican {
       background: red;
    }

Alternatively, you can do

     <div ex:role="lens" 
ex:background-style-content="if(.political-party = 'democrats', 'blue', 
'red')">
          ...
      </div>

>   Again, thanks.  I wish I could share some of the things I am working 
> on but I'm not really in a position to do so at the moment.  --  Also, 
> we had an exchange in the past and you gave me some "timelineView2" 
> code that I enhanced to allow any of the properties to come from a 
> linked element.  Would you like my changes?
Certainly! Thanks!

David

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

Reply via email to