I'm trying to use this https://github.com/matfish2/vue-tables-2 with Vue 2.1.8.
And it's working perfectly BUT I need to use custom filters to format some fields based on their value etc.
In options I have this:
customFilters: [
{
name:'count',
callback: function(row, query) {
console.log('see me?'); // Not firing this
return row.count[0] == query;
}
}
]
In the docs it says I have to do this:
Using the event bus:
Event.$emit('vue-tables.filter::count', query);
But I have no idea where to put this? I tried many places. For example in my axios success callback but nothing.
I guess this is very basic and I should know this but I don't. So if someone could tell me where to put that event bus staff would be awesome!