The available space for the element in case it has to be moved in one of the directions (top, left, bottom, right)
Sets the minimal distance from the bottom of the element to the bottom of the viewport
DOMRect object providing information about the size of an element and its position relative to the viewport
Whether to set the css position, which returns the element into the viewport, Or handle this outside of the directive
Emits the direction in which the element should be moved to return to the viewport
DOMRect object of the parent, providing information about its size and its position relative to the viewport
The viewport height
The viewport width
Whether the element is aligned left, relative to its parent
Returns an object, specifying the available space for the element in each direction
Returns an object, specifying the directions in which the element overflows from the viewport
Sets left fallback
Sets top fallback
Returns the element in viewport boundaries
Sets the left or right positions of the element Emits movingDirectionsInfo
Sets the left or right positions of the element or fallbacks if no space is available
Sets the top or bottom positions of the element or fallbacks if no space is available
Emits the direction in which the element should be moved to return to the viewport As well as the number of pixels it should be moved with
Generated using TypeDoc
API reference for SfMoveInViewportDirective
import {SfCommonModule} from "@progress/sitefinity-component-framework";
attribute:
sfMoveInViewport
description: Returns the element in the boundaries of the viewport