lundi 29 avril 2019

Condition inside the datatabele

I created data table and in this, I want to check the condition, here is the part of my code:

buttons: [
                {
                    extend: 'pdfHtml5',
                    exportOptions: {
                    if(group_id != topManagementUserLevel){
                        columns: [0, 1, 2, 3, 4]
                          }
                    }
                },
            ],

I want to add if condition to check some values but when I am inserted that one into code Its gives an error.

Uncaught SyntaxError: Unexpected token !=

Is there a any other way to do this

Aucun commentaire:

Enregistrer un commentaire