Gathering detailed insights and metrics for aim-react-drag-listview
Gathering detailed insights and metrics for aim-react-drag-listview
Gathering detailed insights and metrics for aim-react-drag-listview
Gathering detailed insights and metrics for aim-react-drag-listview
A simple draggable list component for React
npm install aim-react-drag-listview
Typescript
Module System
Node Version
NPM Version
70.4
Supply Chain
98.5
Quality
74.4
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
499
Last Day
2
Last Week
2
Last Month
14
Last Year
156
MIT License
240 Stars
73 Commits
6 Forks
1 Watchers
3 Branches
9 Contributors
Updated on Feb 24, 2025
Minified
Minified + Gzipped
Latest Version
0.2.1
Package Id
aim-react-drag-listview@0.2.1
Unpacked Size
39.29 kB
Size
6.91 kB
File Count
12
NPM Version
8.5.0
Node Version
16.13.1
Cumulative downloads
Total Downloads
2
5
React drag list component.
react-drag-listview
already supports mobile (touch) devices, which can be easily implemented based on the dragdroptouch polyfilldragdroptouch
to your website. e.g.
1<script id="DragDropTouch" src="https://bernardo-castilho.github.io/DragDropTouch/DragDropTouch.js"></script>
1npm install 2npm start
1const ReactDragListView = require('react-drag-listview'); 2 3class Demo extends React.Component { 4 constructor(props) { 5 super(props); 6 7 const data = []; 8 for (let i = 1, len = 7; i < len; i++) { 9 data.push({ 10 title: `rows${i}` 11 }); 12 } 13 14 this.state = { 15 data 16 }; 17 } 18 19 render() { 20 const that = this; 21 const dragProps = { 22 onDragEnd(fromIndex, toIndex) { 23 const data = [...that.state.data]; 24 const item = data.splice(fromIndex, 1)[0]; 25 data.splice(toIndex, 0, item); 26 that.setState({ data }); 27 }, 28 nodeSelector: 'li', 29 handleSelector: 'a' 30 }; 31 32 return ( 33 <ReactDragListView {...dragProps}> 34 <ol> 35 {this.state.data.map((item, index) => ( 36 <li key={index}> 37 {item.title} 38 <a href="#">Drag</a> 39 </li> 40 ))} 41 </ol> 42 </ReactDragListView> 43 ); 44 } 45} 46
Name | Type | Default | Description |
---|---|---|---|
onDragEnd | Function(fromIndex, toIndex) | on drag end callback, required | |
nodeSelector | String | tr | get drag item cssQuery |
handleSelector | String | nodeSelector | get drag handle cssQuery |
ignoreSelector | String | ignore node list | |
enableScroll | Boolean | true | whether use auto scroll for dragging |
scrollSpeed | Number | 10 | scroll speed |
lineClassName | String | get dragLine's className, css properties must be use !important |
react-drag-listview is released under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/21 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
0%
2
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
-60%
14
Compared to previous month
Last Year
9.9%
156
Compared to previous year