collapse

The collapse event is fired when item got collapsed.
The item and the inner data item are transmitted as an event arguments - event.element and event.item.


<div id="timeline" />

<script type="text/javascript">
    $(function () {
        $('#timeline').shieldTimeline({
              dataSource: {
                    data: [
                        {
                            title: "David F.",
                            text: "Hey! Sure, I will message ...",
                            iconCls: "fa fa-facebook",
                            collapsed: true
                        },
                        {
                            title: "Followed",
                            text: "By J.R. Simpson",
                            iconCls: "fa fa-twitter"
                        }
                    ]
                },
                events: {
                    collapse: function(element, item) {
                        console.log("Item got collapsed");
                    }
                }
          });
    });
</script>