protonemedia / inertiajs-tables-laravel-query-builder

Inertia.js Tables for Laravel Query Builder
https://protone.media/en/blog/introducing-inertiajs-tables-a-datatables-like-package-for-laravel-query-builder
MIT License
435 stars 123 forks source link

Reset button not working when used in slots #97

Open jdsantos opened 1 year ago

jdsantos commented 1 year ago

Hi there!

First of all, thank you for your contribution to the community with this package. I'm using this package in a small project, and at some point i needed to customize the TableReset slot which i did with the following:

<Table>
<template #tableReset="resetProps">
</template>
</Table>

The resetProps (unspreaded) has the onClick property well defined, and canBeReset property always with the value of "canBeReset". I do think it is always like this because of a small binding error here: https://github.com/jdsantos/inertiajs-tables-laravel-query-builder/blob/main/js/Components/Table.vue#L52

I will make a PR and if you think this solves the problem correctly please merge it.

Thanks!

jdsantos commented 1 year ago

here is the PR #98

jdsantos commented 1 year ago

Any updates on this?

jdsantos commented 1 year ago

Anyone?