- Source:
Methods
(static) addPositionType(type, option)
Add or replace position type rules for auto positioning.
Does not fully determinated with parameters yet, only draft version.
Parameters:
Name | Type | Description |
---|---|---|
type |
string | name of position rules |
option |
object | options of position rules |
- Source:
setPosition(source, params) → {jQuery}
Place DOM element relative to another element or using position parameters. Elements with style.display='none' also supported.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source |
object | object that provides information about new position. accepts:
|
||||||||||||||||||||||||
params |
object | position parameters:
|
- Source:
Returns:
jQuery wrapped DOM elements
- Type
- jQuery
Examples
jQuery('#tooltip').setPosition('#myDiv',{from:'LB', to:'AA'});
jQuery('#myClickDiv').bind("click",function(e){jQuery('#tooltip').setPosition(e);});