How to use the dom utils to get width / height? (the site's example does not help) #13965
-
|
I tried to use this example for getting the dimensions of an element: But I do not understand at all how to use this example with the options api. If I put it in Then I tried it inside and get this error: 'TypeError: computedViewerWidth is not a function' I would really appreciate some help. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Try it https://vueuse.org/core/useelementsize/#useelementsize |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, but how is this related to quasar? using |
Beta Was this translation helpful? Give feedback.
-
|
I was hoping to get an answer for this too. I'm getting the same error. Does anyone know how to get these utils working? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
https://codepen.io/metalsadman/pen/BaxJLbW