Skip to content

Files

Latest commit

Apr 4, 2024
cbff452 · Apr 4, 2024

History

History
This branch is 249 commits behind deephaven/web-client-ui:main.

file-explorer

@deephaven/file-explorer

React component for browsing a file explorer server. Implementation must be provided.

Install

npm install --save @deephaven/file-explorer

Usage

import React, { Component } from 'react';
import FileExplorer, { FileStorage } from '@deephaven/file-explorer';

class MyFileStorage implements FileStorage {
  // Must implement all menthods...
}

const storage = new MyFileStorage();

class Example extends Component {
  render() {
    return (
      <FileExplorer
        storage={storage}
        onSelect={item => console.log('Item selected', item)}
      />
    );
  }
}

Legal Notices

Deephaven Data Labs and any contributors grant you a license to the content of this repository under the Apache 2.0 License, see the LICENSE file.