Reputation: 101192
I'm trying to figure out how I can format a value with jquery templates.
One of the values is a bool which I would like to convert to a string. I tried:
{IsVisible?'x':'-'}
which didn't work. How can I do it?
Upvotes: 0
Views: 172
Reputation: 14906
That should work fine (provided it's prefixed with a $
):
${IsVisible ? 'x' : '-'}
Upvotes: 2