Format values from table for Editor instance

Format values from table for Editor instance

schwaluckschwaluck Posts: 103Questions: 27Answers: 1

Hi all,

I stumbled upon the following problem:

I have a column in my table which contains 1 or 0.
with the render function I got it to display the 1 or 0 as a word in my table. I want to have the same in my editor instance, so that the user wont need to select 1 or 0 but rather the word.
Example
1 = taken
0 = empty

I want to have a dropdown in my Editor which shows taken / empty as options rather than 1 or 0.

Is that possible?

Thanks a lot!

Replies

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Yep, for select you can specify options, so {'true':1, 'false':0} should do the trick,

    Colin

This discussion has been closed.