You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
712 B
19 lines
712 B
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { OverlayReference } from '../overlay-reference';
|
|
/** Strategy for setting the position on an overlay. */
|
|
export interface PositionStrategy {
|
|
/** Attaches this position strategy to an overlay. */
|
|
attach(overlayRef: OverlayReference): void;
|
|
/** Updates the position of the overlay element. */
|
|
apply(): void;
|
|
/** Called when the overlay is detached. */
|
|
detach?(): void;
|
|
/** Cleans up any DOM modifications made by the position strategy, if necessary. */
|
|
dispose(): void;
|
|
}
|