Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drag-enabled

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drag-enabled

Have you looked at all the other Angular drag and drop libraries and noted they are not generic enough to fit within your design? This library provides Angular 4 directives that enables you to have any html tag drag drop enabled within your component cont

  • 0.0.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to Drag Enabled!

Have you looked at all the other Angular drag and drop libraries and noted they are not generic enough to fit within your design? This library provides Angular 4 directives that enables you to have any html tag drag drop enabled within your component control just by adding DragDropModule into your AppModule.

Version 0.0.0

The following are available functionalities presented in this version.

DEPENDENCIES: basic Angular core libraries

Sample code

<th scope="col"
	[dragEnabled]="dragEnabled.bind(this)"
	[dropEnabled]="dropEnabled.bind(this)"
	[medium]="header1"
	(onDragStart)="onDragStart($event)"
	(onDragEnd)="onDragEnd($event)"
	(onDrop)="onDrop($event)">h1</th>

	.............

  	dragEnabled(medium) {
		return medium.dragable;
	}
	dropEnabled(event) {
		return event.destination.dragable;
	}
	onDragStart(event){
	}
	onDragEnd(event){
	}
	onDrop(event){
		// this.swapColumns(event.source.key, event.destination.key);
	}

	.............

	table {
		th {
			&.drag-over {
				background-color: #9b9b9b;

				.title, .icon {
				color: #eee;
			}
		}
	}
	

Source code

FAQs

Package last updated on 12 Mar 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc