These are some pretty straightforward examples of what you can do with jQueryFileTree
$('.filetree-basic').fileTree({
script: 'connectors/jqueryFileTree.php'
}, function(file) {
console.log(file);
// do something with file
$('.selected-file').text( $('a[rel="'+file+'"]').text() );
});
$('.filetree-without-multifolder').fileTree({
script: 'connectors/jqueryFileTree.php',
multiFolder: false
});
$('.filetree-folders-only').fileTree({
script: 'connectors/jqueryFileTree.php',
onlyFolders: true,
expandSpeed: 250,
collapseSpeed: 250
});
$('.filetree-custom-easing').fileTree({
script: 'connectors/jqueryFileTree.php',
expandEasing: 'easeOutBounce'
});
$('.filetree-multiselect').fileTree({
script: 'connectors/jqueryFileTree.php',
multiSelect: true
});
$('.filetree-events')
.fileTree({
script: 'connectors/jqueryFileTree.php',
})
.on('filetreeexpanded filetreecollapsed filetreeclicked ...', function(e, data) {
console.log(data);
});