How to use function formatter in etable?

Hi! I try to use etableand do not understand what is correct format to use function formatter in it. If I write

"formatter":function(x) {return x?'Used':'Unused'}

it is JSON syntax error. If I add quotes, like here:

"formatter":"function(x) {return x?'Used':'Unused'}"

it does not work in etable. It looks like it is Tabulator syntax error :slightly_smiling_face:
How to do that in correct manner?
Of course my real formatter is more complex.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.