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.

ConnectedPositioningStrategy

new ConnectedPositioningStrategy(settings: PositionSettings): ConnectedPositioningStrategy

Defined in projects/igniteui-angular/core/src/services/overlay/position/connected-positioning-strategy.ts:33

Returns ConnectedPositioningStrategy

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

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 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: HTMLElement

    The HTML element to be positioned

  • size: Size

    Size of the element

  • document: Document

    reference to the Document object

  • initialCall: boolean

    should be true if this is the initial call to the method

  • target: HTMLElement | Point

    attaching target for the component to show

    settings.positionStrategy.position(content, size, document, true);

Returns void