forked from katoid/angular-grid-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support for rowHeight = 'fit', also added @input() height
- Loading branch information
1 parent
27a1290
commit 24dae63
Showing
13 changed files
with
269 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
projects/demo-app/src/app/row-height-fit/row-height-fit.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div class="grid-container" #gridContainer> | ||
<ktd-grid [cols]="cols" | ||
[height]="gridHeight" | ||
[rowHeight]="'fit'" | ||
[layout]="layout" | ||
[compactType]="compactType" | ||
[preventCollision]="preventCollision" | ||
[gap]="gap"> | ||
<ktd-grid-item *ngFor="let item of layout; trackBy:trackById" | ||
[id]="item.id" | ||
[draggable]="!disableDrag" | ||
[resizable]="!disableResize"> | ||
<div class="grid-item-content">{{item.id}}</div> | ||
<div class="grid-item-remove-handle" | ||
*ngIf="!disableRemove" | ||
(mousedown)="stopEventPropagation($event)" | ||
(click)="removeItem(item.id)"> | ||
</div> | ||
</ktd-grid-item> | ||
</ktd-grid> | ||
</div> | ||
|
||
<div class="footer-container"> | ||
<h2 style="margin-top: 16px">Other examples: </h2> | ||
<div style="display: flex; flex-direction: column"> | ||
<a [routerLink]="['/playground']">Playground</a> | ||
<a [routerLink]="['/custom-handles']">Custom handles</a> | ||
<a [routerLink]="['/real-life-example']">Real life example</a> | ||
<a [routerLink]="['/scroll-test']">Scroll test</a> | ||
</div> | ||
</div> |
Oops, something went wrong.