collapse

This event is fired when the context menu is about to be collapsed.

<script type="text/javascript">
jQuery(function($) {
   $("#menu").shieldContextMenu({
              target: ".itemlist",
              filter: ".item",
              events: {                    
               collapse: function (e) {
                      alert("An item is being collapsed");
                    }
                }
            });
});
</script>