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

Method create

src/cdk/a11y/focus-trap/focus-trap.ts:400–409  ·  view source on GitHub ↗

* Creates a focus-trapped region around the given element. * @param element The element around which focus will be trapped. * @param deferCaptureElements Defers the creation of focus-capturing elements to be done * manually by the user. * @returns The created focus trap instance.

(element: HTMLElement, deferCaptureElements: boolean = false)

Source from the content-addressed store, hash-verified

398 * @returns The created focus trap instance.
399 */
400 create(element: HTMLElement, deferCaptureElements: boolean = false): FocusTrap {
401 return new FocusTrap(
402 element,
403 this._checker,
404 this._ngZone,
405 this._document,
406 deferCaptureElements,
407 this._injector,
408 );
409 }
410}
411
412/** Directive for trapping focus within a region. */

Callers 3

ngAfterViewInitMethod · 0.45
constructorMethod · 0.45
ngAfterViewInitMethod · 0.45

Calls

no outgoing calls

Tested by 2

ngAfterViewInitMethod · 0.36
ngAfterViewInitMethod · 0.36