Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

this.api() access Options from JSON response

$
0
0

Is it possible to access the options key from the JSON response when using the ajax server side method having set some options in the php file?

I.e. in my JSON response below can I access the options using a this.api function in an initCompletefunction?

{
"data":[],
"options":
    {
        "t_owneraccount.iChaletId":[{"label":"Test 1","value":"128"}],
        "t_owneraccount.iChaletId":[{"label":"Test 2","value":"100"}],
    },
}

Viewing all articles
Browse latest Browse all 3740