inOpts on a select doesn't seem to work

inOpts on a select doesn't seem to work

davidma7685davidma7685 Posts: 3Questions: 1Answers: 0

Few notes first: DataTables debugger doesn't work. It gives an error on console: Uncaught RangeError: Maximum call stack size exceeded

DataTables live also has issues. The page the login form is trying to post to gives a 404 error, so. Might want to check on that.

That being said.. here's my code.

var editor = new $.fn.dataTable.Editor({
            ajax: {
                "url": '/charts/update_chart',
                "type": "post"
            },
            table: "#chart-data",
            idSrc: "id",
            fields: [
                {label: 'Chart Name', name: 'name'},
                {label: 'Chart Title', name: 'title'},
                {label: 'Chart Subtitle', name: 'subtitle'},
                {
                    label: "Type",
                    name: "type_id",
                    type: "select",
                    inOpts: [{"label":"Line","value":"1"},{"label":"Bar","value":"2"},{"label":"Pie","value":"3"}]                },
                {label: "Categories", name: "categories"}
            ]
        });

I've been staring at the examples trying to figure out where I went wrong... but so far ever time I look it seems like I've formatted it correctly. And yet... the select box is empty when the form comes up.

Thanks for any help anyone can provide.

This question has an accepted answers - jump to answer

Answers

  • davidma7685davidma7685 Posts: 3Questions: 1Answers: 0

    I realize I don't have a test-case.. but I'm not sure where to get a publicly linkable version of the js files for datatables to use in jsfiddle, and as I said, datatables live isn't working, so.

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394
    Answer ✓

    Do you mean "ipOpts"?

  • davidma7685davidma7685 Posts: 3Questions: 1Answers: 0

    I don't... I... you... but they...

    Thanks. I'll see myself out now.

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    Hehe. The slightly quirky naming is short for 'input / output options'.

    Allan

This discussion has been closed.