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

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

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -