
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sbweb-dragband
Advanced tools
UI library to create a draggable list bar. Reponsive, scrollable, swipeable
UI library to create a draggable list bar
// create a dragBar with itemindex 11 selected by default
var myDragBand = dragBand.init(
document.querySelector('#myul'), 11, {
leftScroller : document.getElementById('left-scroll-button'),
rightscroller : document.getElementById('right-scroll-button'),
scrollstep : 50,
elasticWidth : 100,
hideScrollerMargin : 20
});
// select no item
myDragBand.selectItem(null);
// select item with index 2
myDragBand.selectItem(2);
// create object with default options and no scrollbuttons
var simpleDragBand = dragBand.init(document.querySelector('#simple'));
Configure the third parameter of init
method as an object with the following properties:
Property | Type | Description | default |
---|---|---|---|
leftScroller | Object | element representing left scrollbutton | null |
rightscroller | Object | element representing right scrollbutton | null |
scrollstep | number | px to scroll when using wheel/scrollbutton | 50 |
elasticWidth | number | elasticity beyond left/right edges in px | 100 |
hideScrollerMargin | number | hidden buttons when with margin from edge | 20 |
Check https://codepen.io/anon/pen/vzaaoL for an example.
FAQs
UI library to create a draggable list bar. Reponsive, scrollable, swipeable
The npm package sbweb-dragband receives a total of 3 weekly downloads. As such, sbweb-dragband popularity was classified as not popular.
We found that sbweb-dragband demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.