com.phloxui
Version:
PhloxUI Ng2+ Framework
24 lines (23 loc) • 906 B
TypeScript
import { OnInit, ElementRef, ViewContainerRef, NgZone } from '@angular/core';
import { AbstractHasOptions } from '../share/AbstractHasOptions';
export declare class Draggable extends AbstractHasOptions implements OnInit {
static readonly DEFAULT_FORMAT: string;
static readonly CLASS_NAME_DRAGGING: string;
static readonly DEFAULT_ALWAYS_FIRE_EVENT: boolean;
static readonly DEFAULT_AUTO_ADD_CLASS: boolean;
protected options: any;
private format;
private component;
private alwaysFireEvent;
private autoAddClass;
private elementRef;
constructor(elRef: ElementRef, viewConRef: ViewContainerRef, ngZone: NgZone);
private bindEvents();
ngOnInit(): void;
private isDraggable(event);
private addStyleClass(className);
private removeStyleClass(className);
private onDragStart(event);
private onDragEnd(event);
private onDrag(event);
}