Options not populating
Options not populating
Allan,
For some reason this code is not populating the options. It shows the options field, but no options are populated.
oMethods.editor = new $.fn.dataTable.Editor({
ajax : submitAjax,
table : oMethods.oTable,
fields : [
{
name : 'image_name'
},
{
name : 'group_name'
},
{
name : 'locale',
type : 'select',
options : locales
},
]
});
locales is formatted as either [{label:label,value:value}...] or {value:label, value:label ... }
Neither seems to work. What am I missing? :)
-Beau, CEO, NewLIST
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi Beau,
Can you confirm what version of Editor you are using please? The
options
option requires Editor 1.4 or newer (1.4 is currently in beta). In 1.3 and earlier it was calledipOpts
(input options).Allan
Yup. That ipOps option name fixed it. Thanks, Allan! :D