Skip to content

Commit e174f70

Browse files
committed
fix(grid): mark grid's outlet property as input
1 parent a858f05 commit e174f70

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,24 +3400,27 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
34003400
}
34013401

34023402
/**
3403-
* Gets the outlet used to attach the grid's overlays to.
3403+
* Gets/Sets the outlet used to attach the grid's overlays to.
34043404
* @remark
34053405
* If set, returns the outlet defined outside the grid. Otherwise returns the grid's internal outlet directive.
34063406
*/
3407+
@WatchChanges()
3408+
@Input()
34073409
get outlet() {
34083410
return this.resolveOutlet();
34093411
}
34103412

3413+
set outlet(val: IgxOverlayOutletDirective) {
3414+
if (this._userOutletDirective !== val) {
3415+
this._userOutletDirective = val;
3416+
this.notifyChanges(true);
3417+
}
3418+
}
3419+
34113420
protected resolveOutlet() {
34123421
return this._userOutletDirective ? this._userOutletDirective : this._outletDirective;
34133422
}
34143423

3415-
/**
3416-
* Sets the outlet used to attach the grid's overlays to.
3417-
*/
3418-
set outlet(val: any) {
3419-
this._userOutletDirective = val;
3420-
}
34213424

34223425
/**
34233426
* Gets the default row height.

0 commit comments

Comments
 (0)