This option specifies the location of the wrapped elements (the ones being re-positioned) to align with the target element or location. By default its value is center.
Option – my
This option specifies the location of the wrapped elements (the ones being re-positioned) to align with the target element or location. By default its value is center.
Two of these values are used to specify location: top, left, bottom, right, and center, separated by a space character, where the first value is the horizontal value, and the second the vertical. Whether the specified single value is considered horizontal or vertical depends upon which value you use (for example, top is taken as vertical, while right is horizontal).
This option is of type String and specifies the location of the target element against which to align the re-positioned elements. Takes the same values as the my option. By default its value is center.
Option – at
This option is of type String and specifies the location of the target element against which to align the re-positioned elements. Takes the same values as the my option. By default its value is center.
This is of type Selector or Element or jQuery or Event. It identifies the target element against which the wrapped elements are to be re-positioned, or an Event instance containing mouse coordinates to use as the target location. By default its value is null.
Option – of
This is of type Selector or Element or jQuery or Event. It identifies the target element against which the wrapped elements are to be re-positioned, or an Event instance containing mouse coordinates to use as the target location. By default its value is null.
This option is of type String and specifies the rules to be applied when the positioned element extends beyond the window in any direction. By default its value is flip.
Option – collision
This option is of type String and specifies the rules to be applied when the positioned element extends beyond the window in any direction. By default its value is flip.
Accepts two (horizontal followed by vertical) of the following −
flip − Flips the element to the opposing side and runs collision detection again for fit. If neither side fits, center is used as a fallback.
fit − Keeps the element in the desired direction, but adjusts the position such that it will fit.
flipfit − First applies the flip logic, placing the element on whichever side allows more of the element to be visible. Then the fit logic is applied to ensure as much of the element is visible as possible.
none − Disables collision detection.
If a single value is specified, it applies to both directions.
This option is a function that replaces the internal function that changes the element position. Called for each wrapped element with a single argument that consists of an object hash with the left and top properties set to the computed target position, and the element set as the function context. By default its value is null.
Option – using
This option is a function that replaces the internal function that changes the element position. Called for each wrapped element with a single argument that consists of an object hash with the left and top properties set to the computed target position, and the element set as the function context. By default its value is null.
This option is a Selector or Element or jQuery element, and allows you to specify which element to use as the bounding box for collision detection. This can come in handy if you need to contain the positioned element within a specific section of your page. By default its value is window.
Option – within
This option is a Selector or Element or jQuery element, and allows you to specify which element to use as the bounding box for collision detection. This can come in handy if you need to contain the positioned element within a specific section of your page. By default its value is window.