Hi,
thanks for your post, and sorry for the trouble.
For this, you can turn off searching in the first column. For that, please add this to the “Custom Commands” text field on the table’s “Edit” screen:
"columnDefs": [ { "searchable": false, "targets": [ 0 ] } ]
Regards,
Tobias
Hi TobiasBG,
I would not like to deactivate the first column,
I would like to be able to choose whether to search in the first or second column
also in the “Custom Commands” I entered another code
this:
"dom": "lifrtp"
can you enter more codes together?
Hi,
to use both codes, just combine them with a comma:
"dom": "lifrtp", "columnDefs": [ { "searchable": false, "targets": [ 0 ] } ]
And if you want to prevent searching in the second column, just change the value of the targets parameter to [ 1 ] (counting the columns in these commands starts with 0).
Regards,
Tobias
Thanks for the reply,
what I want and filter a column or columns in real time
example I am in the topic and I want to filter the search only on computer, after a moment on cpu
Hi,
unfortunately, I don’t know a solution for that 🙁 You will probably have to use the DataTables JavaScript library’s API functions (see https://www.datatables.net/) directly, sorry.
Regards,
Tobias