I have a custom made filter function on my website where I am using one of your datatables. When initializing the datatable one can add parameters with the "data" option. I want to do this, but only if search terms are provided. The amount of search terms and their key-value pairs will be known at runtime which is why I can't define them at datatable initialization.
I am basically looking for a possibility to simply add (remove) up to n parameters to (from) the request url:
exampleUrl?draw=1&columns...&key1=value1&...&keyN=valueN&_=1581171459716
I know about the option to add parameters at runtime by using a function for "data", but I didn't understand how to use it in my case. Maybe someone can provide an example of how to do this.