expandedTemplate

The template string or function for determining the expanded state of a TreeView node.

<script type="text/javascript">
    jQuery(function ($) {
        $("#treeview").shieldTreeView({
            dataSource: {
                data: [
                    { text: "Item One", items: [] },
                    { text: "Item Two", items: [
                        { text: "Sub child" }
                    ] }
                ]
            },
            expandedTemplate: "{items}"
        });
    });
</script>