Only if the event bus is global. Try looking more at source code and what objects are present in global window scope.
Jan 21, 2020
3
Level 1
How to watch for nova 'reset filters' event on custom filter ?
Hello
I am currently building a nova custom Filter but I am stuck with an issue.
I cannot figure out how does the global RESET FILTERS button works.
I have looked into the nova source code and it does emit an event in nova/resources/js/components/FilterMenu.vue
@click="$emit('clear-selected-filters')"
I tried to attach it to my filter like so @clear-selected-filters="myMethod" but with no luck.
Can I listen for that event on my custom nova filter ? if so how can I do so ?
Best regards. Antoine.
Please or to participate in this conversation.