Restomax Draggable
Restomax Draggable is an Angular >=2.0.0 module.
Install module
npm install --save restomax-draggable
Import module
import { RMXDraggableModule } from 'restomax-draggable';
@NgModule({
imports: [
...
RMXDraggableModule,
...
],
...
})
export class AppModule {}
Use Module/Component
<div class="draggable-container">
<div rmxDraggable
[index]="'uniq-id'"
[startLeft]="30"
[startTop]="30"
[startWidth]="300"
[startHeight]="260"
[unlock]="true"
[pointStartTop]="50"
[pointStartBottom]="contentSize.height"
[pointStartLeft]="160"
[pointStartRight]="contentSize.width"
[refresh]="refreshWidget"
(contextmenu)="openPopoverMenu($event)"
(dragStart)="onDragStart($event)"
(dragEnd)="onDragEnd($event)"
></div>
</div>
Todo continue doc
Complete documentation...