source: trip-planner-front/node_modules/@angular/cdk/overlay/scroll/scroll-strategy.d.ts

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: 1.0 KB
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 { OverlayReference } from '../overlay-reference';
9/**
10 * Describes a strategy that will be used by an overlay to handle scroll events while it is open.
11 */
12export interface ScrollStrategy {
13 /** Enable this scroll strategy (called when the attached overlay is attached to a portal). */
14 enable: () => void;
15 /** Disable this scroll strategy (called when the attached overlay is detached from a portal). */
16 disable: () => void;
17 /** Attaches this `ScrollStrategy` to an overlay. */
18 attach: (overlayRef: OverlayReference) => void;
19 /** Detaches the scroll strategy from the current overlay. */
20 detach?: () => void;
21}
22/**
23 * Returns an error to be thrown when attempting to attach an already-attached scroll strategy.
24 */
25export declare function getMatScrollStrategyAlreadyAttachedError(): Error;
Note: See TracBrowser for help on using the repository browser.