-
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): add separate export, add button template, #307
- Loading branch information
1 parent
895d912
commit d09b219
Showing
11 changed files
with
122 additions
and
93 deletions.
There are no files selected for viewing
17 changes: 13 additions & 4 deletions
17
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,4 +1,13 @@ | ||
<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> | ||
<ng-template #iconContainer> | ||
<ng-content *ngIf="iconTemplate" select="igx-collapsible-button"></ng-content> | ||
<igx-icon *ngIf="!iconTemplate" fontSet="material" [name]="collapsible.collapsed? 'expand_more':'expand_less'"></igx-icon> | ||
</ng-template> | ||
<ng-container *ngIf="buttonPosition === 'left'"> | ||
<ng-container *ngTemplateOutlet="iconContainer"></ng-container> | ||
</ng-container> | ||
<ng-content select="igx-collapsible-title"></ng-content> | ||
<ng-content select="igx-collapsible-description"></ng-content> | ||
<ng-content></ng-content> | ||
<ng-container *ngIf="buttonPosition === 'right'"> | ||
<ng-container *ngTemplateOutlet="iconContainer"></ng-container> | ||
</ng-container> |
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
4 changes: 1 addition & 3 deletions
4
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
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
35 changes: 35 additions & 0 deletions
35
projects/igniteui-angular/src/lib/collapsible/collapsible.directives.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Directive } from '@angular/core'; | ||
|
||
@Directive({ | ||
// tslint:disable-next-line:directive-selector | ||
selector: 'igx-collapsible-header' | ||
}) | ||
export class IgxCollapsibleHeaderDirective { | ||
} | ||
@Directive({ | ||
// tslint:disable-next-line:directive-selector | ||
selector: 'igx-collapsible-title' | ||
}) | ||
export class IgxCollapsibleTitleDirective { | ||
} | ||
|
||
@Directive({ | ||
// tslint:disable-next-line:directive-selector | ||
selector: 'igx-collapsible-description' | ||
}) | ||
export class IgxCollapsibleDescriptionDirective { | ||
} | ||
|
||
@Directive({ | ||
// tslint:disable-next-line:directive-selector | ||
selector: 'igx-collapsible-body' | ||
}) | ||
export class IgxCollapsibleBodyDirective { | ||
} | ||
|
||
@Directive({ | ||
// tslint:disable-next-line:directive-selector | ||
selector: 'igx-collapsible-button' | ||
}) | ||
export class IgxCollapsibleButtonDirective { | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
export * from './collapsible-header.component'; | ||
export * from './collapsible.component'; | ||
export * from './collapsible.module'; |
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