Datagrid reload via ajax
-
Greetings
I developed a package for shop in which I show the customer a Bagisto datagrid with some information. I have a form in that same view. I haven't been able to reload the datagrid via Ajax when I perform an action from that form.
Something very similar is happening to me, but in the admin (back office).Please help.
-
So far, the only way I've managed to do it is by modifying the core datagrid component (index.blade) and adding these lines
mounted() { this.boot(); if (window.emitter) { window.emitter.on('wallet:admin:logs:refresh', (payload) => { if (!payload || !payload.target || payload.target === this.src) { this.get(); } }); } },But it's not what I would like