template

Specifies the template string of function for rendering a TreeView node checkbox control. If not specified, a ShieldUI CheckBox will be displayed.

<ul id="treeview">
    <li>My Project
        <ul>
            <li id="someid">js</li>
            <li>css</li>
        </ul>
        <li>index.html<li>
        <li>upload.php<li>
    </li>
</ul>

<script type="text/javascript">
    jQuery(function ($) {
        $("#treeview").shieldTreeView({
            checkboxes: {
                enabled: true,
                children: false,
                template: function(container, item, parentItem) {
                    $(')
                        .appendTo(container);
                        .click(function(e) {
                            alert("Item " + item.text + " checked");
                        });
                }
            }
        });
    });
</script>