spatie / vue-table-component

A straight to the point Vue component to display tables
http://vue-table-component.spatie.be
MIT License
588 stars 149 forks source link

Filter the table externally #130

Closed motatoes closed 6 years ago

motatoes commented 6 years ago

Hi! Is it possible to filter the data table externally by calling its methods? Suppose I have:

<table-component ref="leaderboard" ... >

</table-compenent>

In my script, I want to do something like:

this.$refs.leaderboard.setFilter('abc')

Is it possible to achieve this?

tonila commented 6 years ago

Yes! I needed to clear filter externally, so I did:

this.$refs.leaderboard.filter = ''
spatie-bot commented 6 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.