New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@creaditor/dragoned

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@creaditor/dragoned

Another Sortable library but with the line

unpublished
latest
Source
npmnpm
Version
1.0.12
Version published
Maintainers
1
Created
Source

Dragoned

Dragoned.js is a library for drag-and-drop lists with different sizes of height

Features

  • Supports touch devices with touch events.
  • Can drag from one list to another.
  • Smart auto-scrolling on any device.
  • Easy to set up, plug & play!

Examples

  • Drag And Drop - Sandbox
  • Sortable - Sandbox
  • All from codesandbox.io

Install

You can install it on npm.

npm install dragoned --save

Usage

<ul id="container">
  <li>item 1</li>
  <li>item 2</li>
  <li>item 3</li>
</ul>
new Dragoned(document.querySelector("#container"));

Options

 new Dragoned(container,{
     group:"group-name",
     sort: true,
     draggable:"query-selector", // which element inside the container should be draggable.
     handle:"handle-element", //  Drag handle selector within list items.
     clone:true, // Clone the item.
     delay: 100 // time in milliseconds to start.
     onStart:({item, from, oldIndex})=>{

     },
     // on move an item in the list or between lists
     onMove:({item, from, to, newIndex, oldIndex})=>{

     },
     // on dragging ended
     onEnd:({item, from, to, newIndex, oldIndex,direction})=>{

     },
     // on creating a clone of element
     onClone:({item, from, oldIndex}) =>{

     }
 });

Contributing

All contributions are super welcome!

Got questions? click here.

Keywords

sortable

FAQs

Package last updated on 19 Apr 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