Activating colorbox again after using the search filter in the table
Activating colorbox again after using the search filter in the table
PieterSpark
Posts: 3Questions: 1Answers: 0
I'm using the basic config of datatables but when using the search filter on top, colorbox doesn't work anymore... so the popup just opens in a new page.
How or where can I reactivate the $(".colorbox").colorbox(); ? Any ideas?
Answers
This FAQ might help you understand why it isn't working.
More generally use
rows().node()
to get alltr
elements in the table and then you can run your selector and apply colorbox to them.Allan
Ok, that's already a good start. Now where do I find the code for when the searchfilter is used? I need to know which function to extend.
What "searchfilter"? Do you mean the global search box? In what way do you want to extend it and to do what?
Allan
I would like colorbox to still work once I used th search box on top of the table.
I've already said how to do that - use
rows().nodes()
and then apply a selector to them.If you provide a link to a test case showing the issue (as required in the forum rules) I'd be able to be more specific.
Allan