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

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

initial commit

  • Property mode set to 100644
File size: 1.5 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 { NgZone } from '@angular/core';
9import { ScrollStrategy } from './scroll-strategy';
10import { OverlayReference } from '../overlay-reference';
11import { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
12/**
13 * Config options for the RepositionScrollStrategy.
14 */
15export interface RepositionScrollStrategyConfig {
16 /** Time in milliseconds to throttle the scroll events. */
17 scrollThrottle?: number;
18 /** Whether to close the overlay once the user has scrolled away completely. */
19 autoClose?: boolean;
20}
21/**
22 * Strategy that will update the element position as the user is scrolling.
23 */
24export declare class RepositionScrollStrategy implements ScrollStrategy {
25 private _scrollDispatcher;
26 private _viewportRuler;
27 private _ngZone;
28 private _config?;
29 private _scrollSubscription;
30 private _overlayRef;
31 constructor(_scrollDispatcher: ScrollDispatcher, _viewportRuler: ViewportRuler, _ngZone: NgZone, _config?: RepositionScrollStrategyConfig | undefined);
32 /** Attaches this scroll strategy to an overlay. */
33 attach(overlayRef: OverlayReference): void;
34 /** Enables repositioning of the attached overlay on scroll. */
35 enable(): void;
36 /** Disables repositioning of the attached overlay on scroll. */
37 disable(): void;
38 detach(): void;
39}
Note: See TracBrowser for help on using the repository browser.