Datatable icon indicating copy to clipboard operation
Datatable copied to clipboard

how to provide complex options

Open pegues opened this issue 11 years ago • 2 comments

Hi, Can anyone help me how to initialize datatable with complex options like this. oTable = $('#AttributesList-table').dataTable({ "aoColumnDefs": [ { "aTargets": [ '_all' ], "mRender": function ( data, type, full ) { if(data!=null) { return '

'+data+'
'; } else { return ''; } } } ] }); Actually I want to wrap cell data with
tag.

pegues avatar Aug 26 '14 20:08 pegues

You always have the possibility to edit the template directly if the given options does not satisfy your needs.

Chumper avatar Sep 15 '14 17:09 Chumper

Check out pull request https://github.com/Chumper/Datatable/pull/264

You can also put that javascript function into your template and then just reference it by name to simplify things.

tblanchard avatar Mar 20 '15 08:03 tblanchard