simplebar icon indicating copy to clipboard operation
simplebar copied to clipboard

Dynamically mounting the Vue wrapper

Open kalnode opened this issue 4 years ago • 0 comments

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

kalnode avatar Feb 10 '21 00:02 kalnode