expand

The expand event is fired when item got expanded.
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: {
                    expand: function(element, item) {
                        console.log("Item got expanded");
                    }
                }
          });
    });
</script>