File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed
projects/igniteui-angular
action-strip/grid-actions Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 84
84
"web-animations-js" : " ^2.3.2"
85
85
},
86
86
"igxDevDependencies" : {
87
- "@igniteui/angular-schematics" : " ~12.0.800-rc.0 "
87
+ "@igniteui/angular-schematics" : " ~12.0.800"
88
88
},
89
89
"ng-update" : {
90
90
"migrations" : " ./migrations/migration-collection.json"
Original file line number Diff line number Diff line change 1
1
< 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 >
2
7
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 >
10
9
< ng-container *ngIf ="asMenuItem ">
11
10
< div #container [className] ='containerClass '>
12
11
< igx-icon *ngIf ="iconSet " [family] ="iconSet " [name] ="iconName "> {{iconName}}</ igx-icon >
13
12
< igx-icon *ngIf ="!iconSet " > {{iconName}}</ igx-icon >
14
- < label *ngIf =' asMenuItem ' igxLabel > {{labelText}}</ label >
13
+ < label igxLabel > {{labelText}}</ label >
15
14
</ div >
16
15
</ 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 {
26
26
* @hidden
27
27
* @internal
28
28
*/
29
- @ViewChild ( TemplateRef )
29
+ @ViewChild ( 'menuItemTemplate' )
30
30
public templateRef : TemplateRef < any > ;
31
31
32
32
/**
Original file line number Diff line number Diff line change @@ -661,8 +661,8 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
661
661
* @param index
662
662
*/
663
663
public getRowByKey ( key : any ) : RowType {
664
- const rec = this . primaryKey ? this . filteredSortedData . find ( r => r [ this . primaryKey ] === key ) :
665
- this . filteredSortedData . find ( r => r === key ) ;
664
+ const rec = this . filteredSortedData ? this . primaryKey ? this . filteredSortedData . find ( r => r [ this . primaryKey ] === key ) :
665
+ this . filteredSortedData . find ( r => r === key ) : undefined ;
666
666
const index = this . dataView . findIndex ( r => r . data && r . data === rec ) ;
667
667
if ( index < 0 || index >= this . filteredSortedData . length ) {
668
668
return undefined ;
You can’t perform that action at this time.
0 commit comments