-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(igxCollapsible): update sample, add output, add event emit, #307
- Loading branch information
1 parent
47f6085
commit 895d912
Showing
5 changed files
with
99 additions
and
39 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
projects/igniteui-angular/src/lib/collapsible/collapsible-header.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<igx-icon fontSet="material" [name]="collapsible.collapsed? 'expand_more':'expand_less'"></igx-icon> | ||
<ng-content select="igx-collapsible-title"></ng-content> | ||
<ng-content select="igx-collapsible-description"></ng-content> | ||
<ng-content></ng-content> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,45 @@ | ||
<div class="sample-wrapper"> | ||
<h2>WIP</h2> | ||
<button igxButton class='igx-button--flat' (click)="resetScore()">Reset score</button> | ||
<div class="game-board"> | ||
<igx-collapsible class="game-board__collapsible"> | ||
<igx-collapsible-header headerHeight="50px"> | ||
<igx-collapsible-title>Current Winning Player:</igx-collapsible-title> | ||
<igx-collapsible-description>{{ getWinningPlayer }}</igx-collapsible-description> | ||
<app-page-header title="Collapsible" description="Collapsible lets you display content with a toggleable details view"></app-page-header> | ||
<section> | ||
<div class="game-board"> | ||
<igx-collapsible class="game-board__collapsible"> | ||
<igx-collapsible-header (onInterraction)="onInterraction($event)"> | ||
<igx-collapsible-title>Current Winning Player:</igx-collapsible-title> | ||
<igx-collapsible-description>{{ getWinningPlayer }}</igx-collapsible-description> | ||
<button igxButton class='igx-button--flat' (click)="resetScore($event)">Reset score</button> | ||
</igx-collapsible-header> | ||
<igx-collapsible-body> | ||
<igx-grid class="game-board__grid" [data]="data"> | ||
<igx-column [sortable]="true" [field]="'Game'" [header]="'Game'" [width]="'120px'" [pinned]="true"> | ||
<ng-template igxCell let-value> | ||
<span class="game-board__grid__match">{{value}}</span> | ||
</ng-template> | ||
</igx-column> | ||
<igx-column [sortable]="true" [field]="'Player 1'" [header]="'Score: Player 1'"> | ||
</igx-column> | ||
<igx-column [sortable]="true" [field]="'Player 2'" [header]="'Score: Player 2'"> | ||
</igx-column> | ||
</igx-grid> | ||
</igx-collapsible-body> | ||
</igx-collapsible> | ||
</div> | ||
</section> | ||
<!-- <section> | ||
<igx-collapsible> | ||
<igx-collapsible-header> | ||
<igx-collapsible-title> | ||
Title | ||
</igx-collapsible-title> | ||
<igx-collapsible-title> | ||
Simple Description | ||
</igx-collapsible-title> | ||
<div class="additional-content"> | ||
Additional Content | ||
</div> | ||
</igx-collapsible-header> | ||
<igx-collapsible-body> | ||
<igx-grid class="game-board__grid" [data]="data"> | ||
<igx-column [sortable]="true" [field]="'Game'" [header]="'Game'" [width]="'30%'" [pinned]="true"> | ||
<ng-template igxCell let-value> | ||
<span class="game-board__grid__match">{{value}}</span> | ||
</ng-template> | ||
</igx-column> | ||
<igx-column [sortable]="true" [field]="'Player 1'" [header]="'Score: Player 1'" [width]="'50%'"> | ||
</igx-column> | ||
<igx-column [sortable]="true" [field]="'Player 2'" [header]="'Score: Player 2'" [width]="'50%'"> | ||
</igx-column> | ||
</igx-grid> | ||
</igx-collapsible-body> | ||
<igx-collapsible-body> | ||
Very detailed and extensive description regarding the simple title and further elaborating on the simple description. | ||
</igx-collapsible-body> | ||
</igx-collapsible> | ||
</div> | ||
</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