veeso / tui-realm-treeview Goto Github PK
View Code? Open in Web Editor NEW๐ฒ treeview component for tui-realm ๐
License: MIT License
๐ฒ treeview component for tui-realm ๐
License: MIT License
When I upgrade to tui-realm 0.5, treeview cannot compile.
Upgrade to tuirealm 0.5, this component will not work.
It should work as before, but now it complains two version of tui-realm is used.
Thanks.
Add any other context about the problem here.
I use treeview to represent the file tree. When I refresh the treeview, all opened folder will become collapsed. Is there a way to preserve the state of treeview when doing refresh?
Would you please upgrade this component to make it compatible with version 0.6 of tuirealm? Thanks so much
Thanks for the component. There is one thing that will be hellpful for me - add the ability to stylerize text at each tree node.
add the ability to stylerize text at each tree node
Node<String, String>
to Node<String, Vec<TextSpan>>
Basically the title, i was just looking through some versions and noticed that those (latest) were missing
For my use case, I'm not finding it useful to be able to collapse the root node of a tree, and displaying the root node of the tree directly below the component title is a bit redundant.
There would be no reason for my users to collapse the root node, so I don't want to let them.
I'm not sure that I described that well, so here's what I'm trying to accomplish:
โญtree-viewerโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ๐ฆ Cargo.toml โ
โ target โถ โ
โ Cargo.lock โ
โ .gitignore โ
โ .git โถ โ
โ src โถ โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Add an option that when used, skips the root node like shown above.
I am not completely up to speed yet, but I'd like to do something along the lines of
hide_root_node
method to TreeView
hide_root_node
field to TreeWidget
render_root_node
function to TreeWidget
that just iterates children if hide_root_node
is true, or calls iter_nodes
if not.I've implemented the render_root_node
part and things seem to work.
If the approach above sounds acceptable, I'd be happy to attempt a PR with the rest.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.