Activate Regex, Deactive Smart Filtering

Activate Regex, Deactive Smart Filtering

daniphdaniph Posts: 3Questions: 1Answers: 0

Hi all

Im trying activate regex filtering and deactive smart filtering. This is my code, but no work

            $('#issuelist').DataTable( {
                "search": {
                    "regex": true,
                    "smart": false
                },              
                "ordering": true,               
                "order": [[ 0, "asc" ]],
                "dom": '<"top pull-right"i>rt<"clear">',
                "columnDefs": [
                    { "orderable": false, "targets": 1 },
                    { "orderable": false, "targets": 6 },
                    { "orderable": false, "targets": 7 }
                ]              
            } );

Anybody can i help me?

Thanks

Answers

  • daniphdaniph Posts: 3Questions: 1Answers: 0

    Any idea?
    Thanks

  • daniphdaniph Posts: 3Questions: 1Answers: 0

    Hi all

    Please anybody can i help me?

    Thanks

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    In what way does it not work? You don't have the default search input box, so I guess you are using the API? If so, use the second and third parameter of the search() to enable regex and disable smart search.

    Beyond that, we'd need a link to a test case, as required in the forum rules.

    Allan

This discussion has been closed.