MCPcopy Create free account
hub / github.com/angular/components / withPreviewTemplate

Method withPreviewTemplate

src/cdk/drag-drop/drag-ref.ts:476–479  ·  view source on GitHub ↗

* Registers the template that should be used for the drag preview. * @param template Template that from which to stamp out the preview.

(template: DragPreviewTemplate | null)

Source from the content-addressed store, hash-verified

474 * @param template Template that from which to stamp out the preview.
475 */
476 withPreviewTemplate(template: DragPreviewTemplate | null): this {
477 this._previewTemplate = template;
478 return this;
479 }
480
481 /**
482 * Registers the template that should be used for the drag placeholder.

Callers 1

_syncInputsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected