render option for editor

render option for editor

russlevyrusslevy Posts: 15Questions: 6Answers: 0

Hi,

Is there a render option for the editor like in datatables to return a different value?

In datatables I use render to return the right date format but then editor doesn't have the render function for when opening the popup.

Thanks!

This question has an accepted answers - jump to answer

Answers

  • russlevyrusslevy Posts: 15Questions: 6Answers: 0
    edited August 2015

    Unfortunately I did not find a similar function but I had to preformat the data and then also use the setData event to format the data after create or edit

  • allanallan Posts: 61,839Questions: 1Answers: 10,134 Site admin
    Answer ✓

    Hi,

    No there isn't. Pre-formatting the data, and the post-formatting it, if you need to deformat it, is the way to do it. The reason there isn't a formatter is that it could get quite complex if you need both setter and getter formatters - so Editor always just works with the raw data.

    If formatters are required, then a custom plug-in field type could be used that provides its own formatters in the set and get functions.

    Allan

This discussion has been closed.