ssCore.Popup.show

Display the named popup menu at the current mouse position.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

name - The name of the menu to display.


Output Parameters:

result - The id of the item selection that caused the menu to be dismissed or 0 if the menu was dismissed with no item selected (i.e. by pressing the escape key or clicking outside the menu).


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Popup.show( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Popup.show( paramsObject );


Notes:

None.


Examples:

ssCore.Popup.show({name:"MyContextMenu"});