Uses a tolerance and closes the shown component upon scrolling if the tolerance is exceeded
Constructors
Section titled "Constructors"CloseScrollStrategy
new CloseScrollStrategy(scrollContainer: HTMLElement): CloseScrollStrategy Defined in projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts:20
Returns CloseScrollStrategy
Methods
Section titled "Methods"attach
Section titled "attach"Attaches the strategy
settings.scrollStrategy.attach(); attach(): void Defined in projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts:53
Returns void
detach
Section titled "detach"Detaches the strategy
settings.scrollStrategy.detach(); detach(): void Defined in projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts:68
Returns void
initialize
Section titled "initialize"Initializes the strategy. Should be called once
initialize(document: Document, overlayService: IgxOverlayService, id: string): void Defined in projects/igniteui-angular/core/src/services/overlay/scroll/close-scroll-strategy.ts:36
Parameters
- document:
Documentreference to Document object.
- overlayService:
IgxOverlayServiceIgxOverlay service to use in this strategy.
- id:
stringUnique id for this strategy.
settings.scrollStrategy.initialize(document, overlay, id);