Coder Social home page Coder Social logo

atarikcaliskan / react-beautiful-tree Goto Github PK

View Code? Open in Web Editor NEW
33.0 4.0 10.0 749 KB

Beautiful tree component for your React apps.

Home Page: https://react-beautiful-tree.netlify.app

License: Apache License 2.0

JavaScript 0.60% TypeScript 99.28% HTML 0.12%
react tree tree-structure dnd treeview treeview-component tree-component

react-beautiful-tree's Introduction

Logo

react-beautiful-tree

Beautiful tree component for your React apps!

Netlify Status npm GitHub GitHub Repo stars

This package is based on Atlassian's tree package.

Features

  • Easy integration for any apps
  • Ready to use tree structure
  • Utility functions
  • Powerful drag & drop support with react-beautiful-dnd
  • Event handlers
  • Virtualization support for big amount of items
  • Accessible row rendering

Examples

Looking for examples? Check the storybook.

Contributing

Contributions of any kind welcome!

react-beautiful-tree's People

Contributors

atarikcaliskan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-beautiful-tree's Issues

Error using virtualization

I'm trying to use the virtualization feature, in a app with material-ui, if i try without the property work fine, but if i activated the property, don't work, the error is:

react-beautiful-dnd

A setup problem was encountered.

Invariant failed:
provided.innerRef has not been provided with a HTMLElement.

You can find a guide on using the innerRef callback functions at:
https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md

The code is:

const renderItem = ({ item, onExpand, onCollapse, provided, snapshot }) => {
        const keysVisibleWorkFlows = visibleWorkflows.map((w) => w.id)
        return (
            <Grid
                {...provided.draggableProps}
                {...provided.dragHandleProps}
                className={classNames(
                    classes.dragContainer,
                    snapshot.isDragging && classes.dragContainerDragging
                )}
                ref={provided.ref}
            >

D&D with Multi select items

Excellent component.
I'm a bit advanced with a feature

Does it allow to select more than one item from the tree at the same time?
If the above is possible, is there a way to drag and drop them all together?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.