File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
projects/igniteui-angular/src/lib/action-strip/grid-actions Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11< ng-container *ngIf ="!asMenuItem ">
2+ < button igxButton ="icon " igxRipple (click) ="handleClick($event) " (mousedown) ="preventEvent($event) ">
3+ < igx-icon *ngIf ="iconSet " [family] ="iconSet " [name] ="iconName "> {{iconName}}</ igx-icon >
4+ < igx-icon *ngIf ="!iconSet " > {{iconName}}</ igx-icon >
5+ </ button >
6+ </ ng-container >
27
3- < ng-container *ngIf ="!asMenuItem ">
4- < button igxButton ="icon " igxRipple (click) ="handleClick($event) " (mousedown) ="preventEvent($event) ">
5- < igx-icon *ngIf ="iconSet " [family] ="iconSet " [name] ="iconName "> {{iconName}}</ igx-icon >
6- < igx-icon *ngIf ="!iconSet " > {{iconName}}</ igx-icon >
7- </ button >
8- </ ng-container >
9-
8+ < ng-template #menuItemTemplate >
109 < ng-container *ngIf ="asMenuItem ">
1110 < div #container [className] ='containerClass '>
1211 < igx-icon *ngIf ="iconSet " [family] ="iconSet " [name] ="iconName "> {{iconName}}</ igx-icon >
1312 < igx-icon *ngIf ="!iconSet " > {{iconName}}</ igx-icon >
14- < label *ngIf =' asMenuItem ' igxLabel > {{labelText}}</ label >
13+ < label igxLabel > {{labelText}}</ label >
1514 </ div >
1615 </ ng-container >
17- </ ng-container >
16+ </ ng-template >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class IgxGridActionButtonComponent {
2626 * @hidden
2727 * @internal
2828 */
29- @ViewChild ( TemplateRef )
29+ @ViewChild ( 'menuItemTemplate' )
3030 public templateRef : TemplateRef < any > ;
3131
3232 /**
You can’t perform that action at this time.
0 commit comments