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

Add property to DataTables,

$
0
0

Hi, I want to init columns outside $().DataTable. How can I do it? My code:

COLONNE='{data:"first_name"},{data:"last_name"}'
var  TABELLA = $('#example').DataTable( {

        dom: 'C<"clear">Tlfrtip',
        "columns":COLONNE
});

but it doesn't work. I tried eval(COLONNE) and window[COLONNE] but nothing. Help please


Viewing all articles
Browse latest Browse all 35282

Trending Articles