qr scanner integration for search button ?
qr scanner integration for search button ?
fatihfx
Posts: 9Questions: 3Answers: 0
How to add qr scanner for search button ?
I did see this (https://datatables.net/blog/2020-07-10)
but I want to add for search button.
Thank you.
Answers
You will create an event handler for your qr scanner. In the event handler get the qr code then use
search()
orcolumn()search()
to search for the code.Kevin
can you create a working example ?
Assuming you are using the same scanner instascan library as in the blog you would do something like this:
The docs explain the
content
parameter:To build an example would take a bit of time. If you want to build an example that reflects the solution you want to deploy we can help with the Datables specifcs.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin