Positions the element based on the directions and start point passed in trough PositionSettings. It is possible to either pass a start point or an HTMLElement as a positioning base.
Constructors
Section titled "Constructors"ConnectedPositioningStrategy
new ConnectedPositioningStrategy(settings: PositionSettings): ConnectedPositioningStrategy Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:33
Returns ConnectedPositioningStrategy
Properties
Section titled "Properties"settings
Section titled "settings"PositionSettings to use when position the component in the overlay
settings: PositionSettings Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:21
Methods
Section titled "Methods"clone
Section titled "clone"Creates clone of this position strategy
clone(): IPositionStrategy Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:58
Returns IPositionStrategy
position
Section titled "position"Position the element based on the PositionStrategy implementing this interface.
position(contentElement: HTMLElement, _size: Size, _document: Document, _initialCall: boolean, target: HTMLElement | Point): void Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:49
Parameters
- contentElement:
HTMLElementThe HTML element to be positioned
- _size:
Size - _document:
Document - _initialCall:
boolean - target:
HTMLElement | Pointattaching target for the component to show
settings.positionStrategy.position(content, size, document, true);