Comments (3)
Hello,
No there is no search functionality. But you can create it I think.
An idea can be:
- create a input in which you type the searched text.
- create a getStyle function that highlight searched text and/or to not display keys that doesn't have the searched key.
- create a isCollapse that open node that have the searched text.
I haven't tested this. This can maybe not work.
Feel free to create a pull request to add this in the library.
Oxyno-zeta
from react-editable-json-tree.
isCollapsed method is not invoked every time tree is rendered? Any reasons why? Whereas getStyle is invoked all the time tree is rerendered.
from react-editable-json-tree.
I forgot this point.
Yes the isCollapsed function is only called in component constructor. Why ? Because this function is here to expand/collapse node the first time. After, you can change this by clicking on node.
If I change to expand/collapse on render, the property cannot change (expect if you have a count in your function).
So, sorry but I don't see how to change this behaviour.
from react-editable-json-tree.
Related Issues (20)
- Use create-react-app for the testing page
- Rewrite test page using functional components and typescript
- Rewrite core library using functional components and typescript
- Update CI tools to use parcel
- Disable `allowFunctionEvaluation` by default
- Add Github project for v3.0.0 HOT 2
- Update dependencies
- Migrate away from react-hotkeys
- CircleCI permission denied error HOT 6
- Fix npm publish task missing HOT 4
- Use GitHub actions for CI? HOT 2
- Remove CircleCI integration HOT 1
- Don't pass mutable keyPath arrays to callback functions while retaining them in our state HOT 3
- Fix dev app's "Read Only Function" checkbox
- Clean up checkbox logic in dev_app
- inputRef is null with custom input elements HOT 4
- Remove custom element generators in favor of another implementation
- Add documentation about refs being necessary for inputElement
- Customize inputElement not working... HOT 2
- Custom Text Color and Size 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-editable-json-tree.