RasterMenu.showNextTo( element [, ofsX [, ofsY]] )
Show this menu to the right of the given element. If the menu does not fit to the right, it is show to the left of the element and adjusted to fit in the window.Parameters
| Name | Type | Description | |
|---|---|---|---|
| element | object | Element to position the menu next to. This value can be one of the following: a string containing the ID of a DOM element, a reference to a DOM element, or another control object. | |
| ofsX | number | optional | X offset to be applied to the final computed x value. This value can be positive or negative. |
| ofsY | number | optional | Y offset to be applied to the final computed y value. This value can be positive or negative. |
Returns
| Type | Description |
|---|---|
| object | The menu object. This allow for chaining multiple setter methods in one single statement. |