Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82037

Storing table-scope property in dataset

$
0
0

Howdy, I have a following dataset structure as example, which is being returned from my custom ajax:

{
globalFieldA: gfA,
globalFieldB: gfB,
    rowData: [{
        row1Name: name1,
        row1Prop: prop1
    },
    {
       row2Name: name2,
       row2Prop: prop2
    }]
}

Now, the question is:
how can I feed my datatable with given global fields globalFieldA, globalFieldB to make it accesible to footer callback, with table rows feeding off the rowData? I would like to avoid to store the dataset in intermediate structure to only have a single point of truth in datatables themselves trough all my processes. Thanks in advance!


Viewing all articles
Browse latest Browse all 82037

Trending Articles