[Vuejs]-Vue-good-table set global search value programmatically

0👍

Thanks @tao, I read the docs before but skipped noticing this property

externalQuery

This is the one that solves the problem, you can link a variable to the search item and I then use your own text input box to implement the solution.

0👍

I found a nice way to do this, the question is a little bit old but just in case anyone is searching for a solution to this, set a ref like

<VueGoodTable ref="my-table">

and you can update the search box like this:

this.$refs["my-table"].globalSearchTerm = 'whatever you want';

P.S.: This won’t trigger the search though

Leave a comment