Add a checkbox to change between use or not use Regex search
Add a checkbox to change between use or not use Regex search
jairov96
Posts: 2Questions: 1Answers: 0
Hello! First of all, thanks for your work, it's amazing how great is this!
Well, now to my question:
Actually I have a table with 5 colums, and I want to make a checkbox for actvate or deactivate the regex filter.
I want to add a checkbox to change between "use regex" or don't use regex.
I've tried some things, but I think I'm doing the things wrong..
var regexOn = false;
$(document).ready(function() {
$('#helppageTitles').DataTable( {
"paging": false,
"info": true,
"autoWidth": true,
//"stateSave": true,
"order": [[ 2, "desc" ]],
"columns": [
{ },
{
"caseInsensitive": true
},
{ "searchable": false },
{
"orderable": false,
"searchable": false
},
{
"orderable": false,
"searchable": false
}
]
"search": {
"smart": false,
"caseInsensitive": regexOn,
"regex": regexOn
}
} );
});
This is what I actually have.. any ideas?
Regards!
Thanks you!
This discussion has been closed.