igniteui-angular-sovn
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
34 lines (30 loc) • 949 B
text/typescript
import { IScrollStrategy } from './IScrollStrategy';
import { IgxOverlayService } from '../overlay';
export abstract class ScrollStrategy implements IScrollStrategy {
constructor() { }
/**
* Initializes the strategy. Should be called once
*
* @param document reference to Document object.
* @param overlayService IgxOverlay service to use in this strategy.
* @param id Unique id for this strategy.
* ```typescript
* settings.scrollStrategy.initialize(document, overlay, id);
* ```
*/
public abstract initialize(document: Document, overlayService: IgxOverlayService, id: string);
/**
* Attaches the strategy
* ```typescript
* settings.scrollStrategy.attach();
* ```
*/
public abstract attach(): void;
/**
* Detaches the strategy
* ```typescript
* settings.scrollStrategy.detach();
* ```
*/
public abstract detach(): void;
}