phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
|
Composant JQuery UI Position property. More...
Public Member Functions | |
__construct ($my="left top", $at="left bottom", $collision="none", $within="window") | |
setMy ($value) | |
Defines which position on the element being positioned to align with the target element: "horizontal vertical" alignment. | |
setAt ($value) | |
Defines which position on the target element to align the positioned element against: "horizontal vertical" alignment. | |
setOf ($value) | |
Which element to position against. | |
setCollision ($value) | |
When the positioned element overflows the window in some direction, move it to an alternative position. | |
setWithin ($value) | |
Element to position within, affecting collision detection. | |
getScript () | |
Public Member Functions inherited from BaseComponent | |
__construct (JsUtils $js=NULL) | |
setParam ($key, $value) | |
getParam ($key) | |
getParams () | |
compile (JsUtils $js=NULL) | |
setParams ($params) | |
addParams ($params) | |
setDebug ($value) | |
setVerbose ($value) | |
Protected Member Functions | |
setParamCtrl ($key, $value, $typeCtrl) | |
Protected Member Functions inherited from BaseComponent | |
getParamsAsJSON ($params) | |
Additional Inherited Members | |
Data Fields inherited from BaseComponent | |
$jquery_code_for_compile =array () | |
Protected Attributes inherited from BaseComponent | |
$params =array () | |
$js | |
__construct | ( | $my = "left top" , |
|
$at = "left bottom" , |
|||
$collision = "none" , |
|||
$within = "window" |
|||
) |
Definition at line 14 of file Position.php.
getScript | ( | ) |
Reimplemented from BaseComponent.
Definition at line 95 of file Position.php.
setAt | ( | $value | ) |
Defines which position on the target element to align the positioned element against: "horizontal vertical" alignment.
See the my option for full details on possible values. Percentage offsets are relative to the target element
string | $value | default : left bottom |
Definition at line 46 of file Position.php.
setCollision | ( | $value | ) |
When the positioned element overflows the window in some direction, move it to an alternative position.
Similar to my and at, this accepts a single value or a pair for horizontal/vertical, e.g., "flip", "fit", "fit flip", "fit none"
string | $value | default : none |
Definition at line 69 of file Position.php.
setMy | ( | $value | ) |
Defines which position on the element being positioned to align with the target element: "horizontal vertical" alignment.
A single value such as "right" will be normalized to "right center", "top" will be normalized to "center top" (following CSS convention). Acceptable horizontal values: "left", "center", "right". Acceptable vertical values: "top", "center", "bottom". Example: "left top" or "center center". Each dimension can also contain offsets, in pixels or percent, e.g., "right+10 top-25%". Percentage offsets are relative to the element being positioned.
string | $value | default : left top |
Definition at line 34 of file Position.php.
setOf | ( | $value | ) |
Which element to position against.
If you provide a selector or jQuery object, the first matching element will be used. If you provide an event object, the pageX and pageY properties will be used. Example: "#top-menu"
string | $value | default : null |
Definition at line 58 of file Position.php.
|
protected |
Reimplemented from BaseComponent.
Definition at line 84 of file Position.php.
setWithin | ( | $value | ) |
Element to position within, affecting collision detection.
If you provide a selector or jQuery object, the first matching element will be used.
string | $value | default : window |
Definition at line 80 of file Position.php.