
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-rubaxa-sortable
Advanced tools
Sortable --- [Sortable](https://github.com/RubaXa/Sortable) is a minimalist library for rearranging items in lists. - [Sortable demo](http://rubaxa.github.io/Sortable/)
Sortable is a minimalist library for rearranging items in lists.
This library provides a Sortable React component (ReactSortable).
What does ReactSortable do for you?
<ReactSortable
// Vanilla Sortable options
sortable={{
// Specify the draggable cells.
draggable: '.todoList-draggable',
// Disable dragging on certain cells.
filter: '.todoItem-ignore',
// Limit the draggable area to a part of the cell.
handle: '.todoItem-handle',
// Receive the new order order.
onSort: this.handleSort
}}
// Component name for Sortable container (optional, default "div")
// This is instantiated as a virtual DOM node, so it can be an HTML element or
// a React component.
component="ul"
// Element name for Sortable items (optional, default "div")
// This is instantiated as an actual DOM element, so it must be an HTML element.
childElement="div"
// Other props are passed on to the Sortable container
className="todoList">
{_(this.state.todos).map(function (todo) {
return (
<TodoItem key={todo.id}
className={React.addons.classSet({
'todoItem-ignore': this.isTodoIgnored(todo)
})}
todo={todo}/>
);
}.bind(this)).value()}
</ReactSortable>
this is bound to the Sortable object, making it difficult to bind Sortable callbacks
directly to component methods.this is bound to the React component.var TodoList = React.createClass({
handleSort: function (sortable, e) {
// Prints child keys
console.log('New todo order:', sortable.toArray());
},
render: function () {
return (
<ReactSortable
sortable={{
onSort: this.handleSort
}}
...
</ReactSortable>
);
}
});
FAQs
Sortable --- [Sortable](https://github.com/RubaXa/Sortable) is a minimalist library for rearranging items in lists. - [Sortable demo](http://rubaxa.github.io/Sortable/)
The npm package react-rubaxa-sortable receives a total of 1 weekly downloads. As such, react-rubaxa-sortable popularity was classified as not popular.
We found that react-rubaxa-sortable 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.