Type Definitions
destroy($elements) → {jQuery}
Frees up the space of the data
Parameters:
Name | Type | Description |
---|---|---|
$elements |
jQuery | The jQuery collection to work with |
- Source:
Returns:
- Type
- jQuery
init($elements, options) → {jQuery}
Initializes the plugin
Parameters:
Name | Type | Description |
---|---|---|
$elements |
jQuery | The jQuery collection to work with |
options |
SettingsHash | string | An object of options or the ID of the menu to show |
- Source:
Returns:
- Type
- jQuery
MethodsHash
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
init |
init | The method to initialize the plugin |
destroy |
destroy | The method to frees the space of the data |
- Source:
SettingsHash
Type:
- Object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
idMenu |
string | null | The ID of the menu to show | |
posX |
number |
<optional> <nullable> |
null | The X coordinate used to show the menu |
posY |
number |
<optional> <nullable> |
null | The Y coordinate used to show the menu |
bindLeftClick |
boolean |
<optional> |
false | If the menu is shown when the left button of the mouse is clicked |
- Source: