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 -

c# - how to write client side events functions for the combobox items -

ssh client with paramiko (python) -