A tree view component for displaying hierarchical file and folder structures with expand/collapse functionality.
This example uses a static data provider with sample files and folders.
This tree view can be resized by dragging the handle on the right edge.
The tree view supports full keyboard navigation:
Test create, rename, and delete operations. All events are logged below.
Tip: Select a folder to create items inside it, or create at root level if nothing is selected.
The tree view can be connected to Azure Blob Storage using the AzureStorageTreeProvider.
import { AzureStorageTreeProvider } from './providers/AzureStorageTreeProvider.js';
const provider = new AzureStorageTreeProvider({
storageAccount: 'your-storage-account',
container: 'your-container',
authMethod: 'quantum-auth',
allowedExtensions: ['.drawio', '.svg', '.png']
});
const treeView = document.querySelector('qds-tree-view');
treeView.dataProvider = provider;