ng2-dnd
Version:
Angular 2 Drag-and-Drop without dependencies
19 lines (18 loc) • 803 B
TypeScript
import { EventEmitter, ElementRef } from 'angular2/core';
import { AbstractComponent } from './dnd.component';
import { DragDropConfig } from './dnd.config';
import { DragDropService } from './dnd.service';
export declare class DroppableComponent extends AbstractComponent {
droppable: boolean;
/**
* Callback function called when the drop action completes correctly.
* It is activated before the on-drag-success callback.
*/
onDropSuccessCallback: EventEmitter<any>;
dropzones: Array<string>;
constructor(elemRef: ElementRef, _dragDropService: DragDropService, _config: DragDropConfig);
_onDragEnterCallback(event: Event): void;
_onDragOverCallback(event: Event): void;
_onDragLeaveCallback(event: Event): void;
_onDropCallback(event: Event): void;
}