stigma-ng-dnd
v0.0.24-1
Published
Angular6 v0.0.24
Downloads
30
Readme
"# DLNGDND" Angular2+ support for glowing and drop.
##Features
- supports
- Drag And Drop
Installation
To use stigma-ng-dnd in your project, install it via npm:
$ npm install stigma-ng-dndUsage
Import the stigma-telegram into your desired module:
var slogger = require('stigma-ng-dnd');import { DndModel } from 'stigma-ng-dnd';
constructor(private dnd: DndModel) {
this.dnd.drop.subscribe((value: DndModel) => {
this.mEvent.drop(value);
});
import { DndPack, DndModel } from 'stigma-ng-dnd';
constructor(private dndPack: DndPack) { //offest this.dndPack.get().offsetY = -20; }
drop(value: DndModel) { console.log(value.startBox, value.endBox, value.startElem, value.endElem); }
//html
Development
To generate all *.js, *.d.ts and *.metadata.json files:
$ npm run buildTo lint all *.ts files:
$ npm run lint