Comments (15)
At first glance everything looks amazing, we will investigate further and let you know our final feedback.
Thanks a ton!
from react-treebeard.
Hi @mindaugasnakrosis! Do you want to expand the row when the mouse is hover on it?
from react-treebeard.
@maximilianoforlenza Current problems is that expand node and select it, are the same operations currently. Would it be possible to separate them?
What I mean by that is only expanding the node, but not selecting it and other way around, clicking on it, selecting it, but not expanding/closing it.
Basically is it possible to do it like in this gif? This is done using another library.
from react-treebeard.
@RokasVaitkevicius what library is that?
from react-treebeard.
@maximilianoforlenza https://github.com/chenglou/react-treeview
But it is not maintained anymore, so difficult to use.
from react-treebeard.
We need the ability to:
- expand the node (one action)
- select the row (another action)
from react-treebeard.
ok. Yes it is possible. I'll start to work on it.
from react-treebeard.
@maximilianoforlenza amazing! Looking forward to the changes.
from react-treebeard.
@maximilianoforlenza how is it going? Maybe you need some help?
from react-treebeard.
hi @mindaugasnakrosis ! I've published a new release https://github.com/storybookjs/react-treebeard/releases/tag/v4.2.4-beta.0 this is a beta version.
Now you have a new prop called onSelect
this prop send the node selected. Here is an example https://github.com/storybookjs/react-treebeard/blob/master/example/app.js and you have customStyles
prop if you want to change the title color.
please give me your feedback, if is ok I'll fix test and I'll publish stable version.
from react-treebeard.
@maximilianoforlenza everything is perfect! Thanks again, will be closing it now.
from react-treebeard.
@mindaugasnakrosis Thanks! I'll fix the unit test and then I'll publish a new version (5.0.0).
from react-treebeard.
Is this new version published? I have version 3.2.4 and onSelect doesn't work. And I don't see onSelect in the ReadMe, either.
from react-treebeard.
If you want to have it, you have to use version "^4.2.4-beta.0". It has onSelect
and onToggle
separated and available. I don't know when it will be published and go out of beta.
from react-treebeard.
Thanks for the hint. It works well! (Correction of the previous version of this comment.)
I appreciate the new function.
from react-treebeard.
Related Issues (20)
- Example doesn't work HOT 2
- Is it possible to change the Icon? HOT 1
- How to get name for parent node?
- Example code does not work as expected. Parent and child nodes all get highlighted when expanded
- How to handle right click events over folders and nodes (files)? HOT 4
- style object is mutated by a component it's passed to HOT 1
- its impossible to update treebeard from client side dynamically?
- How to Pass nodes in custom toggle decorater
- Performance for large numbers of files
- Update data when new file is added HOT 1
- Using array for multiple root nodes fails when interacting with tree (example included) HOT 3
- responsive
- Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `VelocityTransitionGroup`. HOT 2
- Show buttons to the right when hovering on a node? HOT 1
- [Request] Do not show polygon if no children are provided.
- Dynamically add children through API
- [Question] Display more than the name HOT 1
- [Bug] Arrows in markdown are way off on the right HOT 1
- [Question] Remove onToggle from file nodes? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-treebeard.