Hello Anderson,
The ZnetDK datatable widget does not allow natively to highlight a row according to a specific criterium.
However, you can add a little JavaScript code into the view containing your datatable and so highlight a row when it matches a value in particular.
For example, into the view of the
ZnetDK CRUD demo (named "
democrudview.php") add the following lines of code to change the background color of the row containing the value "PN4123" in the second column.
<script>
$(document).ready(function () {
$("#demo-crud-table").on('zdkdatatabledataloaded',function(){
$(this).find('td:nth-child(2)').each(function(){
if ($(this).text()==='PN4123') {
$(this).parent().css('background','lightgreen');
}
});
});
});
</script>
Tell me if it suits your needs.
Regards,
Pascal MARTINEZ