import { ChangeDetectorRef } from '@angular/core'; import { EventEmitter, ElementRef } from '@angular/core'; import { AbstractComponent, AbstractHandleComponent } from './abstract.component'; import { DragDropConfig, DragImage } from './dnd.config'; import { DragDropService, DragDropData } from './dnd.service'; export declare class DraggableComponent extends AbstractComponent { set draggable(value: boolean); /** * Callback function called when the drag actions happened. */ onDragStart: EventEmitter; onDragEnd: EventEmitter; /** * The data that has to be dragged. It can be any JS object */ dragData: any; /** * Callback function called when the drag action ends with a valid drop action. * It is activated after the on-drop-success callback */ onDragSuccessCallback: EventEmitter; set dropzones(value: Array); /** * Drag allowed effect */ set effectallowed(value: string); /** * Drag effect cursor */ set effectcursor(value: string); /** * Here is the property dragImage you can use: * - The string value as url to the image *
* ... * - The DragImage value with Image and offset by x and y: * let myDragImage: DragImage = new DragImage("/images/simpler1.png", 0, 0); * ... *
* ... * - The custom function to return the value of dragImage programmatically: *
* ... * getDragImage(value:any): string { * return value ? "/images/simpler1.png" : "/images/simpler2.png" * } */ dragImage: string | DragImage | Function; cloneItem: boolean; constructor(elemRef: ElementRef, dragDropService: DragDropService, config: DragDropConfig, cdr: ChangeDetectorRef); _onDragStartCallback(event: MouseEvent): void; _onDragEndCallback(event: MouseEvent): void; } export declare class DraggableHandleComponent extends AbstractHandleComponent { constructor(elemRef: ElementRef, dragDropService: DragDropService, config: DragDropConfig, _Component: DraggableComponent, cdr: ChangeDetectorRef); }