exportOptions columns
exportOptions columns
![Andreas S.](https://secure.gravatar.com/avatar/1301aa2413c65ea12908565b58fa4717/?default=https%3A%2F%2Fvanillicon.com%2F1301aa2413c65ea12908565b58fa4717_200.png&rating=g&size=120)
I try to set in the exportOption the column Number that are shown by the login level.
I tried it with this code:
exportOptions: {
columns: function( idx, data, node ) {
if( 4 == uLevel ) {
return new Array( 0, 4, 1, 5, 7 );
} else {
return new Array( 0, );
}
},
But that did not work. I think that should be the same as columns: [ 0, 1, 2 ]
What is wrong here?
Andreas
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @Andreas S. ,
The function needs to return
true
orfalse
, depending on whether you want that column in the export. So something like this example.Cheers,
Colin
Thank, that help me.