destroy

The destroy() method destroys the instance of the Timeline widget.


<div id="timeline" />

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

    $("#timeline").swidget().destroy();

</script>