Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2366

array checkbox in editor show as separate labels

$
0
0

Deal all,

I am using this example: https://editor.datatables.net/examples/advanced/joinArray.html

And I would like to change the appreance of the following:

                "label": "Permissions:",
                "name": "permission[].id",
                "type": "checkbox"

and I would like to have just one checkbox per label (if that makes sense) like this:

            }, {
                "label": "Accounts:",
                "name": "permission[].id['0']",
                "type": "checkbox"
           }, {
                "label": "Desktop:",
                "name": "permission[].id['1']",
                "type": "checkbox"
            }

But permission[].id['0'] is not returning anything and I tried all sort of ways also dotted but what is the correct way to display only one value from the array?

Thanks!


Viewing all articles
Browse latest Browse all 2366

Trending Articles