Button to trigger predefined condition for searchbuilder
Button to trigger predefined condition for searchbuilder
Hi, I have a set of complicated searchbuilder condition that the users use frequently. I am trying to create a shortcut button where the condition will be apply by a single button click. However, I could not find any documentation on how I can do it.
I tried predefined condition that is described in https://datatables.net/extensions/searchbuilder/predefined. It works well but the condition was applied every time the datatable is initialized instead of user-trigger.
Thanks in advance.
This question has an accepted answers - jump to answer
Answers
This example should get you going - it's demonstrating just that.
Colin
Awesome! Thanks alot!