cscan / vue3-excel-editor

Vue3 plugin for displaying and editing the array-of-object in Excel style.
MIT License
231 stars 51 forks source link

DOUBT: not able to use this.$refs.grid, when using new <script setup> instead of <script> #42

Closed chandakash closed 4 months ago

chandakash commented 4 months ago

https://vuejs.org/api/sfc-script-setup.html i'm using this new approach, but now how do I access the grid.

cscan commented 4 months ago

I am sure $refs is only created after mounted. For vue, if you not familiar with composition API, please use the classic option API

chandakash commented 4 months ago

Cool thank you!

On Thu, Jan 4, 2024, 19:23 Ca₃N₂ @.***> wrote:

I am sure $refs is only created after mounted. For vue, if you not familiar with composition API, please use the classic option API

— Reply to this email directly, view it on GitHub https://github.com/cscan/vue3-excel-editor/issues/42#issuecomment-1877130181, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOZGJPTASK4LWGKABTCAM3YM2X53AVCNFSM6AAAAABBM55JISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXGEZTAMJYGE . You are receiving this because you authored the thread.Message ID: @.***>