Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
971 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 | */
|
---|
8 | import { ScrollStrategy } from './scroll-strategy';
|
---|
9 | import { ViewportRuler } from '@angular/cdk/scrolling';
|
---|
10 | /**
|
---|
11 | * Strategy that will prevent the user from scrolling while the overlay is visible.
|
---|
12 | */
|
---|
13 | export declare class BlockScrollStrategy implements ScrollStrategy {
|
---|
14 | private _viewportRuler;
|
---|
15 | private _previousHTMLStyles;
|
---|
16 | private _previousScrollPosition;
|
---|
17 | private _isEnabled;
|
---|
18 | private _document;
|
---|
19 | constructor(_viewportRuler: ViewportRuler, document: any);
|
---|
20 | /** Attaches this scroll strategy to an overlay. */
|
---|
21 | attach(): void;
|
---|
22 | /** Blocks page-level scroll while the attached overlay is open. */
|
---|
23 | enable(): void;
|
---|
24 | /** Unblocks page-level scroll while the attached overlay is open. */
|
---|
25 | disable(): void;
|
---|
26 | private _canBeEnabled;
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.