Hey,
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,
Here’s an example from one of the posts…
dmx.Formatters('string', {
getWeek: function(val) {
return moment(val).week();
},
getIsoWeek: function(val) {
return moment(val).isoweek();
}
});
Cheers!
Community Page
Last updated:
Last updated: