Range date filter with vuejs component
Range date filter with vuejs component
nunziorash
Posts: 12Questions: 2Answers: 0
Hi I need help with vuejs <DataTable> component, how do i post the code?
This question has an accepted answers - jump to answer
Answers
See if this thread here helps. If not, this SO thread looks like it's asking the same question,
Colin
Thank you very much.
This is the solution to the problem: LINK
I searched online but didn't get this result.
Thanks again.
Unfortunately I can no longer use ajax to load data, because there must be authorization with Bearer token.
By changing the code i have this situation:
With this function I retrieve the results
This is the date filter function
When the two inputs with dates change, I have to call the filter function
But it does not work! It seems that the table data is not reset before doing the filter.
Help!!!
If you can link to a page showing the issue so I can diagnose it, I'd be happy to help out.
Allan
https://stackblitz.com/edit/vue-vbhaca?file=src%2FApp.vue
This is the code but I couldn't get it to work, sorry. I'm learning vue by building an application but I've always used datatables. And I don't quite know how to post a vue code.
I apologize, can you help me please
Hi,
Thanks for the link. However, I'm getting the following error from it:
Does it run for you?
What is
risultati.value
value at that point? I'm not clear on why you are adding a row to the table when changing the filter date?Allan
Sorry, I don't know how to run. I copied my code, but it doesn't start.
Anyway, I fixed it myself.
I managed to reset the table results, and start the search function immediately afterwards, when the two input dates change adding this:
Thanks anyway
Good stuff - thanks for letting us know.
Allan