-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(igx-combo): implement templates, filtering, #1260
- Loading branch information
1 parent
d598c41
commit a6b54af
Showing
6 changed files
with
138 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
<ng-template #myCustomTemplate let-display let-key="primaryKey"> | ||
<div>I live in {{display[key]}}</div> | ||
</ng-template> | ||
<div class="sample-wrapper"> | ||
<page-header title="Combo" description="Combo lets you choose value from a list"></page-header> | ||
<section class="sample-content"> | ||
<igx-combo [data]="items"></igx-combo> | ||
<p>Change data to:</p> | ||
<button class="igx-button" (click)="changeData('primitive')">Primitve</button> | ||
<button class="igx-button" (click)="changeData('complex')">Complex</button> | ||
<button class="igx-button" (click)="changeData()">Initial</button> | ||
<igx-combo [data]="items" [filter]="true" [primaryKey]="'field'" [customTemplate]="myCustomTemplate"></igx-combo> | ||
</section> | ||
</div> |
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
Empty file.
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