ipsos-components
Version:
Material Design components for Angular
27 lines (19 loc) • 706 B
text/typescript
/**
* @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 {OverlayRef} from '../overlay-ref';
/** Strategy for setting the position on an overlay. */
export interface PositionStrategy {
/** Attaches this position strategy to an overlay. */
attach(overlay: OverlayRef): 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;
}