Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
846 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { InjectionToken } from '@angular/core';
|
---|
| 9 | import { FocusTrap } from './focus-trap';
|
---|
| 10 | /** The injection token used to specify the inert strategy. */
|
---|
| 11 | export declare const FOCUS_TRAP_INERT_STRATEGY: InjectionToken<FocusTrapInertStrategy>;
|
---|
| 12 | /**
|
---|
| 13 | * A strategy that dictates how FocusTrap should prevent elements
|
---|
| 14 | * outside of the FocusTrap from being focused.
|
---|
| 15 | */
|
---|
| 16 | export interface FocusTrapInertStrategy {
|
---|
| 17 | /** Makes all elements outside focusTrap unfocusable. */
|
---|
| 18 | preventFocus(focusTrap: FocusTrap): void;
|
---|
| 19 | /** Reverts elements made unfocusable by preventFocus to their previous state. */
|
---|
| 20 | allowFocus(focusTrap: FocusTrap): void;
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.