Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

how to provide complex options #156

Open
pegues opened this issue Aug 26, 2014 · 2 comments
Open

how to provide complex options #156

pegues opened this issue Aug 26, 2014 · 2 comments

Comments

@pegues
Copy link

pegues commented Aug 26, 2014

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.

@Chumper
Copy link
Owner

Chumper commented Sep 15, 2014

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

@tblanchard
Copy link

Check out pull request #264

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants