-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add filter param in vue 3 datatable? #13
Comments
The |
ok, will try it out. How about reinitialize datatable using vue 3 plug in method? |
Hi Allan, the options you suggest is working fine, thanks for that. Now left the reinitialize datatable/draw method. |
You could use the destroy option if you wanted to re-init it. There isn't a Vue specific API that I've exposed for that. |
Hi everybody! |
What kind of custom filtering? A DataTables search plug-in, column filtering, something else? The answer is likely no there isn't a Vue specific example, but almost all the DataTables examples can be adapted for the Vue integration plugin. |
i understand about ajax_url and params for custom column filters, but i failed to make destroy/redraw method work |
I'm not sure how destroy / redraw relates to your question about custom Ajax filtering. Perhaps you can link to an example that shows what you've got at the moment. |
i'm talking about param filtering, sorry.
jQuery has .draw() method to refresh table by filtering parameter on input change or button submit. In this example i have just one filter and here i can use global filter. But my task is to make advanced filter with checkboxes and radio buttons. And i can't to make it work. |
But the example wouldn't work in the way the datatables examples are, https://datatables.net/extensions/fixedheader/examples/options/columnFiltering.html because you would have to use vue refs to manipulate the dom, you shouldn't manipulate the dom inside a vue app https://vuejs.org/guide/essentials/template-refs.html.
With love,
David Porter
…On Mon, 6 Feb 2023, at 7:51 PM, Allan Jardine wrote:
What kind of custom filtering? A DataTables search plug-in, column filtering, something else? The answer is likely no there isn't a Vue specific example, but almost all the DataTables examples can be adapted for the Vue integration plugin.
—
Reply to this email directly, view it on GitHub <#13 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACWNAQBDX3MJD6PQR5AFH33WWDCQNANCNFSM6AAAAAATSDEK64>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
You can to some extent, particularly if you add
DataTables has a You can also use |
Allan, thanks a lot for your help. Param filtering is working just fine! |
hi, how can i add filter param in ajax call?
sample from image 1 is vue 3 version, image 2 is jquery version which can add param easily. i cant find anything regarding ajax->data in your website. it is posible to do it in vue 3 datatable right?
And what if i want to destroy and init table again, how to do that?
The text was updated successfully, but these errors were encountered: