Web Component: j-Scrollbar
j-Scrollbar
Custom scrollbars. IMPORTANT: It wraps current content by adding two nested div
elements with relative
position. It works with jComponent v17 only.
Configuration:
parent
{String} selector for a parent element, can containwindow
(default:undefined
)visibleX
{Boolean} always shows horizontal scrollbar (default:false
)visibleY
{Boolean} always shows vertical scrollbar (default:false
)offset
{Boolean} addsoffset.top
of this element (default:false
)reset
{Boolean} resets position if thepath
is changed (default:true
)margin
{Number} a margin for all types of displays (default:0
)marginxs
{Number} a margin forXS
displays (default:0
)marginsm
{Number} a margin forSM
displays (default:0
)marginmd
{Number} a margin forMD
displays (default:0
)marginlg
{Number} a margin forLG
displays (default:0
)track
{String} can track only defined paths e.g.FIELD1,FIELD2,FIELD3
, paths will linked withcomponent.path
Methods:
component.reset()
resets the position to0,0
component.scrollleft(val)
scrolls Xcomponent.scrolltop(val)
scrolls Ycomponent.scrollright(val)
scrolls X from right sidecomponent.scrollbottom(val)
scrolls Y from bottom sidecomponent.scroll(x, y)
scrolls X,Ycomponent.resize()
resizes container (it reacts onresize
events automatically)
Author
- Peter Širka petersirka@gmail.com
- License
Created
23. december 2018
Updated
01. february 2023
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com