Skip to content

Commit be886c8

Browse files
committed
Angular component examples
* better version of #1824 * moved classes to correct place, simplified htm + css to be in .ts template (only 2 files to copy now) * fixed the incorrect event handlers to pass the right set of params for each, cleanup * grid-item simpler elements (matches Nodes fields) MORE TODO....
1 parent 89b8484 commit be886c8

12 files changed

+260
-372
lines changed

demo/angular/gridstack-item.component.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

demo/angular/gridstack-item.component.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

demo/angular/gridstack-item.component.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

demo/angular/gridstack.component.html

Whitespace-only changes.

demo/angular/gridstack.component.scss

Lines changed: 0 additions & 33 deletions
This file was deleted.

demo/angular/gridstack.component.ts

Lines changed: 0 additions & 279 deletions
This file was deleted.

demo/angular/gridstack.module.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

demo/angular/src/app/app.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@
44
<button (click)="show=0">Simple</button>
55
<button (click)="show=1">ngFor case</button>
66
<button (click)="show=2">ngFor custom command</button>
7+
<button (click)="show=3">component</button>
78
</div>
89

910
<div class="test-container">
1011
<angular-simple-test *ngIf="show===0"></angular-simple-test>
1112
<angular-ng-for-test *ngIf="show===1"></angular-ng-for-test>
1213
<angular-ng-for-cmd-test *ngIf="show===2"></angular-ng-for-cmd-test>
14+
15+
<gridstack *ngIf="show===3" [options]="gridstackConfig" (changeCB)="onChange($event)" (resizestopCB)="onResizeStop($event)">
16+
<gridstack-item [id]="'a'" [x]="0" [y]="0" [w]="6" [h]="4" [minH]="2" [minW]="3">
17+
HELLO
18+
</gridstack-item>
19+
</gridstack>
20+
1321
</div>

0 commit comments

Comments
 (0)