File

src/preview.ts

Description

If you pass an <ng-template let-type let-item="item"> to <dnd-preview> as a child, then that template will be rendered so as to follow the mouse around while dragging. What you put in that template is up to you, but in most cases this will be:

Example :
<dnd-preview>
  <ng-template let-type let-item="item">
    <ng-content [ngSwitch]="type">
      <!-- one kind of preview per type, using *ngSwitchCase="'TYPE'" -->
      <div *ngSwitchCase="'TYPE'">{{ item | json }}</div>
    </ng-content>
  </ng-template>
</dnd-preview>

Implements

PreviewListener OnInit OnDestroy

Metadata

Index

Inputs

Inputs

allBackends
Type : boolean
Default value : false

Disables the check for whether the current MultiBackend wants the preview enabled

results matching ""

    No results matching ""