enabled

Gets or sets the enabled state for a given node.

void enabled(boolEnabled, jQuery/list)
Enables/disables a given node.

bool enabled(jQuery/list)
Returns whether a particular node is enabled or not.

<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 ($) {
        var treeview = $("#treeview").shieldTreeView().swidget();

        // disable a node
        treeview.enabled(false, $("#someid"));
    });
</script>