MicroDroid / vue-materialize-datatable

A fancy Materialize CSS datatable VueJS component.
https://overcoder.dev/vue-materialize-datatable
MIT License
178 stars 66 forks source link

Invalid prop: type check failed for prop "customButtons". Expected Function, got Array #52

Closed fancar closed 4 years ago

fancar commented 4 years ago

Hello. I faced with this warning if I pass custom buttons this way: { hide:false, icon:"settings", onclick: function () { console.log('btn pressed') } } I got prop warning "Expected Function, got Array "

As far as know in vuejs-way to pass some state from child to parent is emit\v-on. How can I pass some emit from these custom buttons via the 'onclick' function in buttons array?

Thank you.

MicroDroid commented 4 years ago

Please provide more code, preferably in a codesandbox.