artboard-deluxe / scrollbar
scrollbar()
scrollbar(
options
):ArtboardPluginDefinition
<{element
:HTMLElement
;minThumbSize
:number
;orientation
:ScrollbarOrientation
;restoreStyles
:boolean
;thumbElement
:string
|HTMLElement
; }>
Parameters
options
element
HTMLElement
The element representing the scrollbar.
minThumbSize
number
The minimum size of the thumb.
orientation
ScrollbarOrientation
The orientation.
restoreStyles
boolean
Whether to restore the original styles after destroying the plugin instance.
thumbElement
string
| HTMLElement
The element or selector representing the scrollbar thumb.
Returns
ArtboardPluginDefinition
<{ element
: HTMLElement
; minThumbSize
: number
; orientation
: ScrollbarOrientation
; restoreStyles
: boolean
; thumbElement
: string
| HTMLElement
; }>