Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

angular-multiple-drag

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-multiple-drag

Simplest way to make your angular items movable

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
31
-41.51%
Maintainers
1
Weekly downloads
 
Created
Source

Angular Multiple Drag Module

Simplest way to make your angular items movable

This module uses Angular Multiple Selection Module

Demo

##Installation

###Using npm

npm install angular-multiple-drag

###Using bower

bower install angular-multiple-drag

###From source

Download source from github.com

##Usage

  • Add multiple-selection.min.js and multiple-drag.min.js files to your application
<script type="text/javascript" src="multiple-selection.min.js"></script>
<script type="text/javascript" src="multiple-drag.min.js"></script>
  • Add module to your app angular.module('app', ['multipleDrag'])
  • Add multiple-selection-zone attribute to element where selectable items will be located
  • Add multiple-selection-item attribute to each selectable item
  • Add multiple-drag-item attribute to each selectable item that can move
  • Customize css

##How it works Each draggable item has it`s own angular scope with variables

NameDescription
isDraggabletrue if element can be movable
isDraggingtrue if element now moving

###How to customize

  • Add ng-class to your item
<div multiple-drag-item ng-class="{'dragging': isDragging}"></div>
  • Customizing .dragging in your css
.selected {
    background-color: red !important;
}

Keywords

drag

FAQs

Package last updated on 03 Feb 2015

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