CdkDragPlaceholder
Element that will be used as a template for the placeholder of a CdkDrag when it is being dragged. The placeholder is displayed in place of the element being dragged.
API
class CdkDragPlaceholder<T = any> implements OnDestroy {
templateRef: any;
@Input() data: T;
}
templateRef
anydata
TContext data to be added to the placeholder template instance.
ngOnDestroy
void
@returns
void
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/cdk/drag-drop/CdkDragPlaceholder