jQuery datatreeview disabled - maikelbos0/VDT GitHub Wiki
When creating a datatreeview, sometimes you want it to be disabled until some other input occurs. To achieve this, set the data-disabled
attribute to 'true'. To enable the datatreeview afterwards, see manipulating the treeview after creating.
<div id="example-treeview" data-disabled="true">
</div>
<script type="text/javascript">
$('#example-treeview').datatreeview({
data: [
{ value: '1', text: 'Foo' },
{ value: '2', text: 'Bar' },
{ value: '3', text: 'Baz' }
]
});
</script>