-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I have tried to add this extension in my angular app. But getting this error - index.js:1 Uncaught ReferenceError: OverlayScrollbars is not defined
I have added the cdn in my index.html -
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/os-scroll-chain@1/dist/os-scroll-chain.min.js"></script>
I have added these two in my main ts file
import * as scrollChain from 'os-scroll-chain';
OverlayScrollbars.extension("scrollChain", scrollChain );
Then in my custom overlay scrollbar component I have used this -
OverlayScrollbars(
this.osTarget(),
this._options || {},
{ scrollChain: {vertical: false, horizontal: false} }
);
Metadata
Metadata
Assignees
Labels
No labels