collapse

The collapse event is fired when menu item collapses.
It has two parameters:

  • element - represents the list item.
  • item - represents the data item.

<script type="text/javascript">

     $(function () {
        $("#menu1").shieldMenu({
            events: {
                 collapse: function (event) {
                     alert("Menu item got collapsed.");
                 }
             }
        });
     });

</script>