simplebar
simplebar copied to clipboard
Dynamically mounting the Vue wrapper
Hi,
I know of manually creating an instance of Simplebar core, like so:
if (window.matchMedia('(minwidth: 768px)')) {
new SimpleBar(document.getElementById('mySimplebar'))
}
Can something similar be done with the Simplebar Vue wrapper?
Just wondering if this has been done. Otherwise this looks like the approach: https://stackoverflow.com/a/43809007/4378314