0👍
Use Vue’s @load=
event instead of onload=
.
<svg
xmlns="http://www.w3.org/2000/svg"
width="400"
height="1800"
id="space"
@load="makeDraggable"
>
You also don’t need to call it as a function and pass evt
, vue will do that for you.
- [Vuejs]-CSS sticky table header with scrolling and position absolute
- [Vuejs]-Only group some rows on Ag-Grid
Source:stackexchange.com