bhaveshpatel200 / vue3-datatable-document

vue3-datatable-document.vercel.app
MIT License
23 stars 10 forks source link

unable to call getSelectedRows method #4

Closed MayanSolutions closed 1 year ago

MayanSolutions commented 1 year ago

unable to get the selected rows which are checked in the checkbox

MayanSolutions commented 1 year ago

Figured it out, need the rowSelected event

nizzam commented 1 year ago

Hi @MayanSolutions

Could you please share the code example. I didnt get the idea on how to use methods.

p/s: I'm still new with Vue3

FYILTD commented 1 year ago

@nizzam

create the below

// Object for selected rows let selected = ref([]); // Function to select rows const rowSelect = async (client: any) => { selected.value = JSON.parse(JSON.stringify(client)); }

Add the below to the table component

@rowSelect="rowSelect"

nizzam commented 1 year ago

Hi @FYILTD

Thank you for your response. Really appreciate it.

But, I'm referring to the documentation provided, as screenshot below :

Screenshot 2023-08-09 at 9 34 55 AM

Hope you able to share a way of implementation and usage of those methods.

bhaveshpatel200 commented 1 year ago

@nizzam I will add one more example with all events and methods by tomorrow.

bhaveshpatel200 commented 1 year ago

@nizzam Please find the demo for all the methods with source code: https://vue3-datatable-document.vercel.app/methods

nizzam commented 1 year ago

Hi @bhaveshpatel200

Thank you very much for your prompt action. Really appreciate it.

Wish you all the best !

bhaveshpatel200 commented 1 year ago

Thanks..