Skip to content

Commit a56afb2

Browse files
Merge pull request #7915 from IgniteUI/ibarakov/fix-7899-master
fix(grid): mark grid's outlet property as input
2 parents 4712026 + a4c3f29 commit a56afb2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3440,24 +3440,23 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
34403440
}
34413441

34423442
/**
3443-
* Gets the outlet used to attach the grid's overlays to.
3443+
* Gets/Sets the outlet used to attach the grid's overlays to.
34443444
* @remark
34453445
* If set, returns the outlet defined outside the grid. Otherwise returns the grid's internal outlet directive.
34463446
*/
3447+
@Input()
34473448
get outlet() {
34483449
return this.resolveOutlet();
34493450
}
34503451

3452+
set outlet(val: IgxOverlayOutletDirective) {
3453+
this._userOutletDirective = val;
3454+
}
3455+
34513456
protected resolveOutlet() {
34523457
return this._userOutletDirective ? this._userOutletDirective : this._outletDirective;
34533458
}
34543459

3455-
/**
3456-
* Sets the outlet used to attach the grid's overlays to.
3457-
*/
3458-
set outlet(val: any) {
3459-
this._userOutletDirective = val;
3460-
}
34613460

34623461
/**
34633462
* Gets the default row height.

0 commit comments

Comments
 (0)