MCPcopy Create free account
hub / github.com/angular/components / _createHandlePortal

Function _createHandlePortal

src/cdk-experimental/column-resize/resizable.ts:271–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 }
270
271 private _createHandlePortal(): ComponentPortal<HandleComponent> {
272 const injector = Injector.create({
273 parent: this.injector,
274 providers: [
275 {
276 provide: ResizeRef,
277 useValue: new ResizeRef(
278 this.elementRef,
279 this.overlayRef!,
280 this.minWidthPx,
281 this.maxWidthPx,
282 this.columnResize.liveResizeUpdates,
283 ),
284 },
285 ],
286 });
287
288 return new ComponentPortal(
289 this.getOverlayHandleComponentType(),
290 this.viewContainerRef,
291 injector,
292 );
293 }
294
295 private _showHandleOverlay(): void {
296 if (!this._isDestroyed) {

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected