Can we have the select field options take a function?
Can we have the select field options take a function?
washuit-iamm
Posts: 133Questions: 55Answers: 2
in Editor
https://editor.datatables.net/reference/field/select
I really need to pop a value from the data into that list as the selected item. It looks like if my data value is not in the options list, it never shows up as the selected item in the select box.
Ideally, we would get access to (data, type, set) similsrly to the field.data option.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @washuit-iamm ,
One thing you could do is add that item to the list of values in the
preEdit
, like this here. Would that work?Cheers,
Colin