En mi tabla de datos, estoy usando el filtrado de columnas. Estoy usando esta funcionalidad a través del método de inicio de la tabla de datos y funciona bien. el código se da a continuación
initComplete: function() { $('.dataTables_scrollBody thead tr').css({visibility:'collapse'}); var api = this.api(); api.columns().eq(0).each(function(colIdx) { var cell = $('.myfilters th').eq($(api.column(colIdx).header()).index()); var cStyle = (cell.text() == 'Action') ? "display:none;" : "width:100%;color:black"; var title = "Search" $(cell).html('<input type="text" style=' + cStyle + ' placeholder="' + title + '" />'); $('input', $('.myfilters th').eq($(api.column(colIdx).header()).index())).off('keyup change').on('keyup change', function(e) { e.stopPropagation(); $(this).attr('title', $(this).val()); var regexr = '({search})'; alert(regexr) var cursorPosition = this.selectionStart; api.column(colIdx).search(this.value != '' ? regexr.replace('{search}', '(((' + this.value + ')))'): '', this.value != '', this.value == '').draw();$(this).focus()[0].setSelectionRange(cursorPosition, cursorPosition); $('.dataTables_scrollBody thead tr').css({visibility:'collapse'}); }); }); }, });¿Cómo puedo usar el resaltado de búsqueda en el filtrado de columnas? ¿Cómo puedo agregar un código destacado aquí en la búsqueda de columnas?