Angular6 v0.0.24
npm install stigma-ng-dnd"# DLNGDND"
Angular2+ support for glowing and drop.
##Features
- supports
- Drag And Drop
bash
$ npm install stigma-ng-dnd
`
Usage
Import the stigma-telegram into your desired module:
`js import
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
Number(ID)
{{groups[i][0]}} ({{groups[i][1].length}})
{{groups[i][0]}}
{{i}}-{{j}}
My prefences:
{{i + 1}}) {{item}}
`
Development
To generate all .js, .d.ts and *.metadata.json files:
`bash
$ npm run build
`
To lint all *.ts files:
`bash
$ npm run lint
``