Options not populating

Options not populating

NewLISTNewLIST Posts: 7Questions: 3Answers: 0
edited December 2014 in Editor

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

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin
    Answer ✓

    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 called ipOpts (input options).

    Allan

  • NewLISTNewLIST Posts: 7Questions: 3Answers: 0

    Yup. That ipOps option name fixed it. Thanks, Allan! :D

This discussion has been closed.