refresh

The refresh() method reloads the current instance of the Timeline widget.
The optional parameter options gives the possibility to extend the initial options with the new ones.


<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().refresh();

</script>