Textual adds Sparklines, Selection list, Input validation, and tool tips¶
It's been 12 days since the last Textual release, which is longer than our usual release cycle of a week.
We've been a little distracted with our "dogfood" projects: Frogmouth and Trogon. Both of which hit 1000 Github stars in 24 hours. We will be maintaining / updating those, but it is business as usual for this Textual release (and it's a big one). We have such sights to show you.
A Sparkline is essentially a mini-plot. Just detailed enough to keep an eye on time-series data.
Colors are configurable, and all it takes is a call to
set_interval to make it animate.
Next up is the SelectionList widget. Essentially a scrolling list of checkboxes. Lots of use cases for this one.
We've added tooltips to Textual widgets.
The API couldn't be simpler: simply assign a string to the
tooltip property on any widget.
This string will be displayed after 300ms when you hover over the widget.
As always, you can configure how the tooltips will be displayed with CSS.
We have some quality of life improvements for the Input widget.
You can now use a simple declarative API to validating input.
Also in this release is a suggestion API, which will suggest auto completions as you type. Hit right to accept the suggestion.
Here's a screenshot:
You could use this API to offer suggestions from a fixed list, or even pull the data from a network request.
Development on Textual is fast. We're very responsive to issues and feature requests.
If you have any suggestions, jump on our Discord server and you may see your feature in the next release!