How can i use formatter property value without string quote from PHP json_encode() ?
I have this:
['field' => 'total_amount', 'formatter' => 'formatAmount', 'title' => 'Month X', 'width' => 150]
after encoded :
{'field' : 'total_amount', 'formatter' : 'formatAmount', 'title' : 'Month X', 'width' : 150}
What i want is
'formatter' : formatAmount (without quote) otherwise will throw js error : Uncaught TypeError: string is not a function
Thank you