Can we have the select field options take a function?

Can we have the select field options take a function?

washuit-iammwashuit-iamm Posts: 84Questions: 32Answers: 1

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

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583
    edited November 2018 Answer ✓

    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

This discussion has been closed.