Is there a way to call a method from another component? For example, I have a CustomActions component and because I want to make the component reusable, i want to invoke the method in another component, E.g. A Staff Page that has the vuetable in it. (Staff.vue).
How do i exactly invoke/call the itemAction method and send the rowData and rowIndex params in other components to make it reusable?
Hi all,
Is there a way to call a method from another component? For example, I have a CustomActions component and because I want to make the component reusable, i want to invoke the method in another component, E.g. A Staff Page that has the vuetable in it. (Staff.vue).
How do i exactly invoke/call the itemAction method and send the rowData and rowIndex params in other components to make it reusable?
This is my code in CustomActions.vue:
How do i go about doing this?
Thank you for your help! Appreciate it!