I just came accross dmx.formatters in the forums and am surprisede its taken be a year to realise this feature exists I use dmx.parse and dmx.global.set quite a bit, but would love to explore what the custom formatters is all about and unlock more potential.
It seems it pops up as a solution to a number of specific queries, but i can’t find any information on its general usage, ints syntax, what exact formatters you can use in it (I’ve seen string and array etc)
Would someone care to give a general overview on these points? Is it covered somewhere i’ve missed, perhaps one of the dmx-zone blogs?
Anyway…any general info would be great as i’m sure i could make use of it,
These are similar to the server side formatters.
You should define these client side formatters in jQuery document ready function ideally.
I am unable to find many example posts right now. But there are many in the community.
4 I could find:
The syntax in example you have posted is something I have seen for the first time.
The syntax I have used most is as in link… with 3 parameters…
Source Object Type
Custom Formatter Name
Function with Custom Parameters
These formatter, just like server side do not show up in the UI. You can use them in code view.
Server side formatter can now show up in the UI with the new #custom-modules, but no similar option is available for client side yet.