Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35723

how i can use for or while fooor in datatable();

$
0
0

im trying now to use loop for to add title dynamically here is the example .

$(this.$.idoftable).dataTable({

// in this table theris some title
"data": this.tableContents.table ,
for (i = 0 ; i < table.length ; i++){
console.log(table[i]);

        }
          "aoColumns":[
                      { "title": table[i]; }
           ]
      });

Viewing all articles
Browse latest Browse all 35723

Trending Articles