Skip to content

Commit ae6ba30

Browse files
committed
feat(cdk/overlay): Add option to insert overlay after an element instead of at root
1 parent c4e03a4 commit ae6ba30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdk/overlay/overlay-config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9+
import {ElementRef} from '@angular/core';
910
import {PositionStrategy} from './position/position-strategy';
1011
import {Direction, Directionality} from '../bidi';
1112
import {ScrollStrategy, NoopScrollStrategy} from './scroll/index';
@@ -30,6 +31,9 @@ export class OverlayConfig {
3031
/** Whether to disable any built-in animations. */
3132
disableAnimations?: boolean;
3233

34+
/** If specified, insert overlay after this element, instead of using the global overlay container. */
35+
insertOverlayAfter?: ElementRef;
36+
3337
/** The width of the overlay panel. If a number is provided, pixel units are assumed. */
3438
width?: number | string;
3539

0 commit comments

Comments
 (0)