@youwol/fv-tree
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.3 • Public • Published

    fv-tree 👋

    Version Maintenance License: MIT

    What is it?

    Tree widgets created using flux-view. For now, only an ImmutableTree is exposed (the case of a mutable one will come soon).

    ImmutableTree

    Modification of the tree do not modify nodes: when an edit happens only the portions of the tree that were affected by the edit is rebuild (which is typically about O(log n) of the total nodes in the tree).

    Some examples are provided in code sandbox:

    • Basic example : shows how to contruct and display a tree view from JSON data. A context menu is also constructed

    • Async example : shows how to contruct and display a tree view using async data. The user can pick a directory of his local file-system and displays the structure in the tree view. NOTE: This example is actually not working for now in code sandbox as opening a directory picker from a sub-frame seems forbidden. You can download (or copy-paste) this file and open it in your browser to make it work.

    • Edit example : shows how to apply live edits on a tree view. It also demonstrate undo/redo capabilities and the immutability of the nodes.

    Install

    npm i @youwol/fv-tree

    Homepage

    http:

    DownloadsWeekly Downloads

    33

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    1.26 MB

    Total Files

    72

    Last publish

    Collaborators

    • youwol-jdecharne
    • fmaerten
    • youwol-guillaume