Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular component examples #2129

Merged
merged 2 commits into from Dec 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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>