JqueryUI: Utilities - Positions

Syntax

.position( options )
OptionTypeDescription
myStringThis 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.
atStringSpecifies the location of the target element against which to align the re-positioned elements. Takes the same values as my option. By default its value is center.
ofSelector
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.
collisionStringSpecifies the rules to be applied when the positioned element extends beyond the window in any direction. By default its value is flip.
usingFunction()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.
withinSelector
or Element
or jQuery
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.

Leave a Reply

Your email address will not be published. Required fields are marked *