mardi 27 juillet 2021

yajra datatable search with space problem

Result is:

enter image description here

enter image description here

 function displayAuditTable(data=[]) {

    var  columns = [{data: 'date', name: 'Date',width:"20%"},
        {data: 'user', name: 'User',orderable : false,width:"20%"},
        {data: 'engagement_profile', name: 'Engagement Profile', orderable : false,width:"20%"},
        {data: 'event', name: 'Event', orderable : false,width:"10%"},
        {data: 'description',processing: false,
            serverside: false, "Smart": false, "Regex": true,"Search": " ", orderable: true,width:"30%", searchable: true , name: 'description'}];
    data.order = [];
    data.sort = ['date','desc'];
    $('#audit_trail_table').DataTable().destroy();
    initializeDatatable('audit_trail_table', base_url + '/datatables/audit-trail',
        columns, data, 'Audit Trail');
}

This is the javascript when I search a user it gives a result but when I search user exp then there's no result. I am using yajra datatable.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire