-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(igxCollapsible): Initial POC #307
- Loading branch information
Showing
10 changed files
with
121 additions
and
53 deletions.
There are no files selected for viewing
16 changes: 4 additions & 12 deletions
16
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,13 +1,5 @@ | ||
<div> | ||
<div> | ||
igx-collapsible-header | ||
<div> | ||
igx-collapsible-title | ||
</div> | ||
<div> | ||
igx-collapsible-description | ||
</div> | ||
</div> | ||
|
||
<div>Body ig-content</div> | ||
<div tabIndex="1" class="header-content" style="background-color: greenyellow ; height: 30px"> | ||
<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> | ||
</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
13 changes: 4 additions & 9 deletions
13
projects/igniteui-angular/src/lib/collapsible/collapsible.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,13 +1,8 @@ | ||
<div> | ||
<div> | ||
igx-collapsible-header | ||
<div> | ||
igx-collapsible-title | ||
</div> | ||
<div> | ||
igx-collapsible-description | ||
</div> | ||
<ng-content select="igx-collapsible-header"></ng-content> | ||
</div> | ||
<div *ngIf="!collapsed" style="border: 1px solid rgb(216, 14, 122); background-color:gainsboro"> | ||
<ng-content select="igx-collapsible-body"></ng-content> | ||
</div> | ||
|
||
<div>Body ng-content</div> | ||
</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
17 changes: 14 additions & 3 deletions
17
projects/igniteui-angular/src/lib/collapsible/collapsible.module.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
<div class="sample-wrapper"> | ||
<h2>WIP</h2> | ||
<igxCollapsible></igxCollapsible> | ||
<igx-collapsible> | ||
<igx-collapsible-header headerHeight="50px"> | ||
<igx-collapsible-title>collapsible-title </igx-collapsible-title> | ||
<igx-collapsible-description>collapsible-description</igx-collapsible-description> | ||
</igx-collapsible-header> | ||
<igx-collapsible-body> | ||
Body text | ||
</igx-collapsible-body> | ||
</igx-collapsible> | ||
|
||
</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