@angular/cdk/drag-drop#CdkDragStart TypeScript Examples
The following examples show how to use
@angular/cdk/drag-drop#CdkDragStart.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: animation-drag-start-processor.ts From ngx-chess-board with MIT License | 5 votes |
dragStarted(event: CdkDragStart) {
const style = event.source.getRootElement().style;
style.zIndex = '1000';
style.position = 'absolute';
}
Example #2
Source File: default-drag-start-processor.ts From ngx-chess-board with MIT License | 5 votes |
dragStarted(event: CdkDragStart) {
const style = event.source.element.nativeElement.style;
style.position = 'relative';
style.zIndex = '1000';
style.touchAction = 'none';
style.pointerEvents = 'none';
}
Example #3
Source File: drag-start-strategy.ts From ngx-chess-board with MIT License | 5 votes |
public process(event: CdkDragStart): void {
this.dragStartProcessor.dragStarted(event);
}
Example #4
Source File: ngx-chess-board.component.ts From ngx-chess-board with MIT License | 5 votes |
dragStart(event: CdkDragStart): void {
this.isDragging = true;
let trans = event.source.getRootElement().style.transform.split(') ');
// this.startTrans= trans;
this.startTransition = trans.length === 2 ? trans[1] : trans[0];
this.engineFacade.dragStartStrategy.process(event);
}
Example #5
Source File: gantt-table.component.ts From ngx-gantt with MIT License | 5 votes |
dragStarted(event: CdkDragStart) {
const target = event.source.element.nativeElement;
this.dragStartLeft = target.getBoundingClientRect().left;
}