Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
el-table-draggable
Advanced tools
make el-table draggable, support row, column, expanded, sortable.js
Let el-table support sortable.js
sortablejs
el-table
yarn add el-table-draggable
npm i -S el-table-draggable
import ElTableDraggable from "el-table-draggable";
export default {
components: {
ElTableDraggable,
},
};
<template>
<el-table-draggable>
<el-table row-key></el-table>
</el-table-draggable>
</template>
the wrapper tag of el-table, default is div
support drag column
set onMove callback
onMove: function (/**Event*/evt, /**Event*/originalEvent, domInfo) {
// Example: https://jsbin.com/nawahef/edit?js,output
evt.dragged; // dragged HTMLElement
evt.draggedRect; // DOMRect {left, top, right, bottom}
evt.related; // HTMLElement on which have guided
evt.relatedRect; // DOMRect
evt.willInsertAfter; // Boolean that is true if Sortable will insert drag element after target by default
originalEvent.clientY; // mouse position
domInfo.dragged // the origin dom info of dragged tr, like parent domInfo, level, data, and it's index
domInfo.related // like dragged
// return false; — for cancel
// return -1; — insert before target
// return 1; — insert after target
},
data or cloumn after change
sortablejs's option, the option start with on
, ExampleonSort => @sort
FAQs
make el-table draggable, support row, column, expanded, sortable.js
The npm package el-table-draggable receives a total of 708 weekly downloads. As such, el-table-draggable popularity was classified as not popular.
We found that el-table-draggable 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.