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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -