
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
react-drag-and-drop-multiple-dynamic-column
Advanced tools
Simple react component to drag and drop to multiple box
A multiple column draggable drag and drop
Inspired from React beautiful dnd
Just send a JSON in the given structure to create draggable and droppable column, the column will create as the length of the JSON that pass in props
npm install react-drag-and-drop-multiple-dynamic-column
* Requires react
as a peer dependency: npm install react
import React from "react";
import { render } from "react-dom";
import ReactMDND from "react-drag-and-drop-multiple-dynamic-column";
const data = [
{
id: "1",
name: "Drag drop 1",
data: [
{
id: "1",
value: "Test 1"
},
{
id: "2",
value: "Test 2"
},
{
id: "3",
value: "Test 3"
},
]
},
{
id: "2",
name: "Drag drop 2",
data: [
{
id: "5",
value: "Test 4"
},
{
id: "6",
value: "Test 5"
},
]
},
{
id: "3",
name: "Drag drop 3",
data: [
{
id: "7",
value: "Test 6"
},
{
id: "8",
value: "Test 7"
},
]
},
];
const App = () => (
<App
onChange={(data) => console.log(data)}
width="100%"
height={"100%"}
data={data}
multiple
draggerImg
title
/>
);
render(<App />, document.body);
Prop Name | Type | Default Value | Description |
---|---|---|---|
width | number/string | 0 | The width for dragger |
height | number/string | 0 | The height for dragger |
multiple | boolean | false | The items can select and drag in multiple |
draggerImg | boolean | false | set an image in left side of drag item, (users to know its draggable) |
title | boolean | false | to show title in dragging box |
onChange | function | This Function will return the updated JSON |
FAQs
Simple react component to drag and drop to multiple box
The npm package react-drag-and-drop-multiple-dynamic-column receives a total of 3 weekly downloads. As such, react-drag-and-drop-multiple-dynamic-column popularity was classified as not popular.
We found that react-drag-and-drop-multiple-dynamic-column 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.