Comments (3)
I should mention that Iterator.zip()
doesn't work if the style iterator has less items than the data iterator because zip()
stops when any of the iterators run out of data. So people would be confused why their data was being truncated.
from tui-rs.
Hi, there are several valid points here. First of all, there are certainly a lot of places in the code where there is room for improvements regarding both the API exposed to the caller and the performance.
I took the liberty to implement your ideas in a dedicated branch #11. The major change required for this to work is to update the Widget signature. Indeed, until now the draw call was done using a simple &
to the widget. Consuming the iterator inside the draw call would then require &mut
if I'm not mistaken. This change the behavior of the widget that should now be seen as a "consumable" object. However, this does not appear to me as problem since it was one of the goals of the library anyway.
I would appreciate your feedback on this if you have some time :)
from tui-rs.
Looks good. Sorry for the delay in looking at it. There were some other changes to the API so that delayed me a bit from trying it out. I like it.
from tui-rs.
Related Issues (20)
- How to use different styles for a text object?
- How about another style of paragraph wrapping? HOT 1
- Is there a way of modifying individual cells?
- Shell command line and/or/pipeline cause tui not showing properly HOT 2
- Is there a way to update a `Paragraph`? HOT 2
- Is there a way to use embedded ANSI from a string? HOT 1
- Rendering empty Paragraph panics HOT 2
- Empty lines (containing "") are hidden in List output HOT 1
- Multiple selections in a Table HOT 1
- demo deosnt seems to be self contained,build have error could nt found main functions HOT 1
- confused at how to compile and test the demo HOT 2
- Border top with title should render border on the left side
- Better scroll view HOT 1
- Support drawing a portion of the screen
- Get the line number of a string in a paragraph
- Generic state trait
- Using min and max constraints together results in inconsistent (random) layout. HOT 1
- The "intersects" function caused an integer overflow error. HOT 2
- README should say that tui is unmantained and ratatui is the maintained fork HOT 1
- Detecting overflow panic.
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 tui-rs.