perfect-scrollbar binding for knockout.js
npm install knockout-scrollbar> knockout-scrollbar uses a custom Knockout binding for
> perfect-scrollbar, and uses
> ResizeSensor.js
> to performantly determine whenever the dimensions of the scroll target change.
> This means there is no need to programmatically call an update function.
https://derflatulator.github.io/knockout-scrollbar/demo/
``sh`
npm i -S knockout-scrollbar
If you're using a bundler, just require('knockout-scrollbar').
Otherwise you can include node_modules/knockout-scrollbar/dist/knockout-scrollbar.js with a script tag,perfect-scrollbar
which bundles in and ResizeSensor.js. ko is assumed to be a global.
You'll need to separately include perfect-scrollbar.css though:
`html`
`html`
Some content...
Defaults for both x and y scrollbars is true`.