jquery - Template formatting -


i'm trying figure out how can format value jquery templates.

one of values bool convert string. tried:

{isvisible?'x':'-'} 

which didn't work. how can it?

that should work fine (provided it's prefixed $):

${isvisible ? 'x' : '-'} 

working demo.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -

c# - Binding attached property to IEnumerable -