source: trip-planner-front/node_modules/@angular/cdk/a11y/focus-trap/focus-trap-inert-strategy.d.ts@ 6fe77af

Last change on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 846 bytes
Line 
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 */
8import { InjectionToken } from '@angular/core';
9import { FocusTrap } from './focus-trap';
10/** The injection token used to specify the inert strategy. */
11export 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 */
16export 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.