Socket
Book a DemoInstallSign in
Socket

editable-dnd-list

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editable-dnd-list

An editable DnD list.

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

editable-dnd-list Weekly downloads

An editable DnD list.

Demo

You can access the storybook for this component here.

Props

NameTypeRequiredDefaultDescription
itemsTask[]no[]The initial list of items
onChange(items: Task[]) => voidyes-The function called when there are changes in the list of items

Props of Task

NameTypeRequiredDefaultDescription
idstringyes-The unique if of the item
textstringyes-The text representing the item

Versions

EditableDndList usesMaterial-uiReact
1.0.x16.8.0
1.1.x16.8.0
1.2.x4.10.1216.8.0
1.3.x4.11.016.8.0
1.4.x4.11.316.9.0 or 17.0.0
1.5.x4.12.316.9.0 or 17.0.0
2.0.x5.10.17>=18.0.0

About versioning schema used for EditableDndList

  • Major - it will be increased if any major version of any dependat package changes or there are breaking changes in this package
  • Minor - it will be increased if any minor or patch version of any dependat package changes or there is added functionality in a backwards compatible manner
  • Patch - it will be increased if there are backwards compatible bug fixes

Example

Displaying a list having initially two items:

import * as React from "react";
import EditableDndList from "editable-dnd-list";

class App extends React.Component {
  private items: Task[] = [
    {
      id: '1',
      text: 'Text 1'
    },
    {
      id: '2',
      text: 'Text 2'
    }
  ];

  render() {
    return (
      <div className="App">
        <EditableDndList items={this.items} onChange={this.handleChange} />
      </div>
    );
  }

  handleChange = (items: Task[]) => console.log({ items });
}

export default App;

Changelog

1.0.0

  • editable-dnd-list is made publicly available

1.0.1

  • Fixed bug related to missing assets in lib

1.1.0

  • Updated packages

1.2.0

  • Updated packages

1.2.1

  • Updated packages
  • Moved from npm to yarn

1.2.2

  • Updated packages

1.2.3

  • Updated packages

1.3.0

  • Updated packages

1.3.1

  • Fixed crash produced by "export * from"

1.4.0

  • Accepting React 17 as peerDependencies
  • Fixed security warnings

1.5.0

  • Updated the packages

2.0.0

  • Migrated to material-ui 5
  • Supports minimum React 18

Keywords

list

FAQs

Package last updated on 11 Dec 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.