floating-scrollbar-for-angular
v1.3.0
Published
Display an horizontal scrollbar at the bottom of the window if a div overflows the window height in your Angular 2+ application.
Downloads
36
Maintainers
Readme
Floating scrollbar for Angular 2+
Package for floating scrollbar that can be used with Angular 2 and above
Usage
<div id="container" style="width: 300px; overflow:auto;">
<div id="content" style="width: 2000px; height: 2000px; background-color: #ccc;">
<p>
Hello world
</p>
</div>
</div>
ngAfterViewInit(){
let options={
beautifyScroll:true, // set to TRUE if you want a beautiful scrollbar
scrollBarColor:"yellow", // scrollbar color for making it more beautiful, leave it blank or false
}
customScrollBar.scroll(document.getElementById("container"),options);
}
Technologies
Author
- PRABHAT GIRI ([email protected])
License
This project is licensed under the MIT License - see the LICENSE.md file for details