You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
846 B
21 lines
846 B
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { InjectionToken } from '@angular/core';
|
|
import { FocusTrap } from './focus-trap';
|
|
/** The injection token used to specify the inert strategy. */
|
|
export declare const FOCUS_TRAP_INERT_STRATEGY: InjectionToken<FocusTrapInertStrategy>;
|
|
/**
|
|
* A strategy that dictates how FocusTrap should prevent elements
|
|
* outside of the FocusTrap from being focused.
|
|
*/
|
|
export interface FocusTrapInertStrategy {
|
|
/** Makes all elements outside focusTrap unfocusable. */
|
|
preventFocus(focusTrap: FocusTrap): void;
|
|
/** Reverts elements made unfocusable by preventFocus to their previous state. */
|
|
allowFocus(focusTrap: FocusTrap): void;
|
|
}
|