Skip to content

Commit

Permalink
Merge pull request #2129 from adumesny/master
Browse files Browse the repository at this point in the history
Angular component examples
  • Loading branch information
adumesny committed Dec 28, 2022
2 parents e4096bf + be886c8 commit 8f0b663
Show file tree
Hide file tree
Showing 12 changed files with 260 additions and 372 deletions.
3 changes: 0 additions & 3 deletions demo/angular/gridstack-item.component.html

This file was deleted.

3 changes: 0 additions & 3 deletions demo/angular/gridstack-item.component.scss

This file was deleted.

34 changes: 0 additions & 34 deletions demo/angular/gridstack-item.component.ts

This file was deleted.

Empty file.
33 changes: 0 additions & 33 deletions demo/angular/gridstack.component.scss

This file was deleted.

279 changes: 0 additions & 279 deletions demo/angular/gridstack.component.ts

This file was deleted.

20 changes: 0 additions & 20 deletions demo/angular/gridstack.module.ts

This file was deleted.

8 changes: 8 additions & 0 deletions demo/angular/src/app/app.component.html
Expand Up @@ -4,10 +4,18 @@
<button (click)="show=0">Simple</button>
<button (click)="show=1">ngFor case</button>
<button (click)="show=2">ngFor custom command</button>
<button (click)="show=3">component</button>
</div>

<div class="test-container">
<angular-simple-test *ngIf="show===0"></angular-simple-test>
<angular-ng-for-test *ngIf="show===1"></angular-ng-for-test>
<angular-ng-for-cmd-test *ngIf="show===2"></angular-ng-for-cmd-test>

<gridstack *ngIf="show===3" [options]="gridstackConfig" (changeCB)="onChange($event)" (resizestopCB)="onResizeStop($event)">
<gridstack-item [id]="'a'" [x]="0" [y]="0" [w]="6" [h]="4" [minH]="2" [minW]="3">
HELLO
</gridstack-item>
</gridstack>

</div>

0 comments on commit 8f0b663

Please sign in to comment.