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

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.7 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 { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
9import { NgZone } from '@angular/core';
10import { BlockScrollStrategy } from './block-scroll-strategy';
11import { CloseScrollStrategy, CloseScrollStrategyConfig } from './close-scroll-strategy';
12import { NoopScrollStrategy } from './noop-scroll-strategy';
13import { RepositionScrollStrategy, RepositionScrollStrategyConfig } from './reposition-scroll-strategy';
14/**
15 * Options for how an overlay will handle scrolling.
16 *
17 * Users can provide a custom value for `ScrollStrategyOptions` to replace the default
18 * behaviors. This class primarily acts as a factory for ScrollStrategy instances.
19 */
20export declare class ScrollStrategyOptions {
21 private _scrollDispatcher;
22 private _viewportRuler;
23 private _ngZone;
24 private _document;
25 constructor(_scrollDispatcher: ScrollDispatcher, _viewportRuler: ViewportRuler, _ngZone: NgZone, document: any);
26 /** Do nothing on scroll. */
27 noop: () => NoopScrollStrategy;
28 /**
29 * Close the overlay as soon as the user scrolls.
30 * @param config Configuration to be used inside the scroll strategy.
31 */
32 close: (config?: CloseScrollStrategyConfig | undefined) => CloseScrollStrategy;
33 /** Block scrolling. */
34 block: () => BlockScrollStrategy;
35 /**
36 * Update the overlay's position on scroll.
37 * @param config Configuration to be used inside the scroll strategy.
38 * Allows debouncing the reposition calls.
39 */
40 reposition: (config?: RepositionScrollStrategyConfig | undefined) => RepositionScrollStrategy;
41}
Note: See TracBrowser for help on using the repository browser.