File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/universal-app/kitchen-sink Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -364,3 +364,11 @@ <h2>Badge</h2>
364
364
< button mat-raised-button matBadge ="99 ">
365
365
Clicky thing
366
366
</ button >
367
+
368
+ < h2 > Drag and Drop</ h2 >
369
+ < button cdkDrag > Drag me around</ button >
370
+
371
+ < ul cdkDropList >
372
+ < li cdkDrag > One</ li >
373
+ < li cdkDrag > Two</ li >
374
+ </ ul >
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ import {
47
47
import { BrowserModule } from '@angular/platform-browser' ;
48
48
import { ServerModule } from '@angular/platform-server' ;
49
49
import { FocusMonitor } from '@angular/cdk/a11y' ;
50
+ import { DragDropModule } from '@angular/cdk/drag-drop' ;
50
51
import { Observable , of as observableOf } from 'rxjs' ;
51
52
52
53
export class TableDataSource extends DataSource < any > {
@@ -136,7 +137,8 @@ export class KitchenSink {
136
137
MatStepperModule ,
137
138
138
139
// CDK Modules
139
- CdkTableModule
140
+ CdkTableModule ,
141
+ DragDropModule ,
140
142
] ,
141
143
bootstrap : [ KitchenSink ] ,
142
144
declarations : [ KitchenSink , TestEntryComponent ] ,
You can’t perform that action at this time.
0 commit comments