visible

The visible() method accepts a Boolean attribute, which determines, whether the context menu will be visible or not.

<ul id="contextmenu1">
    <li>Open</li>
	<li>Save</li>
</ul>
<button id="button1" type="button">Context Menu</button>

<script type="text/javascript">

     $("#button1").click(function handleMenu() {
         var menu = $("#contextmenu1").swidget();
         menu.visible(true);
     });   
     $("#contextmenu1").shieldContextMenu({
         target: "body"            
     });
</script>