Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

IF inside createdRow not workinging

$
0
0

Hello.

I have a createdRow that works perfectly without an if, but when informed the desired does not happen, could you help me?

Follow code

var table = $('#hidden-table-info').DataTable({bFilter: true,paging: true,destroy: true,data: result.d.data,language: {"emptyTable": "Nenhuma informação encontrada" },columnDefs: [{ className: 'text-center', targets: [0, 1, 2, 3] },],columns: [{ "data": "Documento" },{ "data": "ChapaEmissor" },{ "data": "Status" },{ "data": "Minuta" }],createdRow: function (row, data, dataIndex) {if (data === "37654800"){$(row).addClass('important btn-btn danger');}}});

Thanks!


Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>