igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
36 lines (35 loc) • 1.38 kB
TypeScript
import { PositionSettings } from './../utilities';
import { IPositionStrategy } from './IPositionStrategy';
/**
* Positions the element based on the directions passed in trough PositionSettings.
* These are Top/Middle/Bottom for verticalDirection and Left/Center/Right for horizontalDirection
*/
export declare class GlobalPositionStrategy implements IPositionStrategy {
/**
* PositionSettings to use when position the component in the overlay
*/
settings: PositionSettings;
protected _defaultSettings: PositionSettings;
constructor(settings?: PositionSettings);
/**
* Position the element based on the PositionStrategy implementing this interface.
*
* @param contentElement The HTML element to be positioned
* @param size Size of the element
* @param document reference to the Document object
* @param initialCall should be true if this is the initial call to the method
* @param target attaching target for the component to show
* ```typescript
* settings.positionStrategy.position(content, size, document, true);
* ```
*/
position(contentElement: HTMLElement): void;
/**
* Clone the strategy instance.
* ```typescript
* settings.positionStrategy.clone();
* ```
*/
clone(): IPositionStrategy;
protected setPosition(contentElement: HTMLElement): void;
}